Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1512

PostPosted: Mon Mar 18, 2013 5:29 pm Reply with quote

In RN25+ exists a tooltip JS script, that makes possible to create JS based tooltips with the title-tag. How can i override the z-index attribute in CSS? I need z-index:10 or more. I think its the boxover script but i can find only a JS file inside the includes folder.

_________________
Github: RavenNuke 
View user's profile Send private message
neralex







PostPosted: Tue Mar 19, 2013 7:06 am Reply with quote

Ok i have found a solution to add the z-index into the whole box-element...

includes/boxover/boxover.js

find:

Code:
function init(e) {

   oDv.appendChild(dvHdr);
   oDv.appendChild(dvBdy);
   oDv.style.position="absolute";
   oDv.style.visibility='hidden';
   document.body.appendChild(oDv);   
}


change it to:

Code:
function init(e) {

   oDv.appendChild(dvHdr);
   oDv.appendChild(dvBdy);
   oDv.style.position="absolute";
   oDv.style.visibility='hidden';
   oDv.style.zIndex='9999'; // added z-index
   document.body.appendChild(oDv);   
}


Now it would be cool to have it as parameter like zindex[1] for the title-tag. So i have tried to write a new function but it will not work:

Code:
function zindex(e) {

   oDv.style.zindex=''+parseInt(e)+''; // added for z-index
}



After that i have added a new line into the scan/check function:

Code:
function scanBO(curNode) {

     if (checkElemBO(curNode.title)) {
         curNode.boHDR=getParam('header',curNode.title);
         curNode.boBDY=getParam('body',curNode.title);

       // .. etc ...

      // zindex start
      curNode.zindex=parseInt(getParam('zindex',curNode.title));
      // zindex: end

      // .. etc ...
         }
         curNode.windowLock=getParam('windowlock',curNode.title).toLowerCase()=='off'?false:true;
         curNode.title='';
         curNode.hasbox=1;
      }
      else
         curNode.hasbox=2;   
}


Any ideas to solve it?
[ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©