Goldie Da Mac
06-13-2003, 02:00 PM
I have a problem with my mouse over buttons
I cant use the ones on Lisa's site as my server doesnt allowed the hoover classes folder.
I have found a different script now. I have a wierd problem. When I write the script it is fine the button works but as soon as I add another button the buttons dont change color when the cursor is over it?:S
Im stuck, here is the script if anyone can help?
<script language="JavaScript">
<!-- // start hidden code
our_image = new Image();
our_image.src = "Images/Buttons/ftbutton1over.gif";
// done with hidden code -->
</script>
<a href="http://www.bbl.org.uk" target="rightside" onMouseOver="button.src=our_image.src;"
onMouseOut="button.src='Images/Buttons/ftbutton1.gif';">
<img name="button" src="Images/Buttons/ftbutton1.gif" width="100"
height="25" alt="a button" border="0"></a>
I cant use the ones on Lisa's site as my server doesnt allowed the hoover classes folder.
I have found a different script now. I have a wierd problem. When I write the script it is fine the button works but as soon as I add another button the buttons dont change color when the cursor is over it?:S
Im stuck, here is the script if anyone can help?
<script language="JavaScript">
<!-- // start hidden code
our_image = new Image();
our_image.src = "Images/Buttons/ftbutton1over.gif";
// done with hidden code -->
</script>
<a href="http://www.bbl.org.uk" target="rightside" onMouseOver="button.src=our_image.src;"
onMouseOut="button.src='Images/Buttons/ftbutton1.gif';">
<img name="button" src="Images/Buttons/ftbutton1.gif" width="100"
height="25" alt="a button" border="0"></a>