TinyPortal
Development => Support => Topic started by: catchpen on September 07, 2007, 05:32:12 AM
Pardon the newbieness of my question...
but I have 2 script blocks. each of these has a standard mouse over effect button but the mouse over effect doesn't work when both blocks are turned on.
Both blocks have the same code but different button images and links. I wanted to keep them in seperate blocks so 1 will disappear after registering, this is the only way I know how to do it since I just started learning this stuff.
Here's an example of 1 of the script blocks
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
loadImage1 = new Image();
loadImage1.src = "http://www.domain.com/Themes/prometheus_11/images/Forum-over.gif";
staticImage1 = new Image();
staticImage1.src = "http://www.domain.com/Themes/prometheus_11/images/Forum.gif";
// End -->
</script> <a href="http://www.domain.com/index.php?action=forum" onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;"> <img border="0" alt="" name="image1" src="http://www.domain.com/Themes/prometheus_11/images/Forum.gif" ALIGN=RIGHT></a>
Thanks,
Jon H.
If you set the blocks, one to show for guests, and one to show for users they will never see the same block twice. If you have it set that way, then you are the only one seeing this as admin because its trying to load the same javascript twice, which kind of cancels out or screws up the code.
Thanks Ichbin I noticed this when I made a standard member log in later last night.
Thanks again :up: