Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
hireamerica
Client


Joined: Sep 30, 2004
Posts: 103
Location: New Jersey

PostPosted: Wed Jul 27, 2005 2:47 pm Reply with quote

In a custom module should simply do this:

Code:
echo "<s cript language=javas cript type=\"text/javas cript\" src=\"includes/overlib.js\"></s cript>";


to allow for mouseover to work with a href= ??

I'm trying to use sentinel's style of mouseover javas cript mouseovers and can't seem to get it to work.. I get the javas cript void(); property, but if I say return overlib('stuff', etc.,etc., for all the properties)"; onmouseout=return_nd();"> I get nada...just the blank property of void();
 
View user's profile Send private message Visit poster's website Yahoo Messenger
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Thu Jul 28, 2005 9:23 pm Reply with quote

You need to have the:
Code:
echo "<s cript language=javas cript type=\"text/javas cript\" src=\"includes/overlib.js\"></s cript>";
in hte includes/javascript.php or the header.php file somewhere close to:
Code:
  include("includes/javascript.php");


This js needs to be before the </head> tag to work properly. Then in the routine you are wanting to use it in you also have to have:
Code:
  echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:9999;\"></div>\n";


Look in admin/modules/nukesentinel/functions.php at the function ipbanmenu() { to see what I'm talking about on that line of code. The way NukeSentinel(tm) uses it is all admin pages with "Help/Info" popups calls that routine that gives the popups their z-index. You would most likely want to set your z-index to something like 9000 to help prevent conflicts as well. So your line would look like:
Code:
  echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:9000;\"></div>\n";

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
hireamerica
PostPosted: Fri Jul 29, 2005 7:40 am Reply with quote

Bob,

Thanks...issue was that with Sentinel, we have if($sentineladmin)>0 then include the pair of overlib s cripts. So they weren't including on my custom module.

So, rather than set $sentineladmin = 1, I just updated javas____.php to always include them (in javas___.php)

Thanks, Bob!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©