Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
Currently I'm running a JavaScript on a website that provides an image roll-over, the script uses 3 images. I can get the script to work fine when the images are placed in the root directory, this is how the script was intially setup.
This clutters my root, so I've been trying to change the JS Script to display the images from a different directory. Usually this task isn't too hard. But i've been having problems changing the directories; the script is below.
<head>
<script language="JavaScript"></script>
</head>Then this is where the paths are set, right now this is set to the default root.
img src="homebutton1.gif" alt="Home" name="img3" width="100" height="33" border="0" id="img3" onMouseDown="FP_swapImg(1,0,/*id*/'img3',/*url*/'homebutton3.gif')" onMouseUp="FP_swapImg(0,0,/*id*/'img3',/*url*/'homebutton2.gif')" onMouseOver="FP_swapImg(1,0,/*id*/'img3',/*url*/'homebutton2.gif')" onMouseOut="FP_swapImg(0,0,/*id*/'img3',/*url*/'homebutton1.gif')" fp-style="fp-btn: Embossed Tab 9; fp-font: Agency FB; fp-font-style: Bold; fp-font-size: 16; fp-font-color-normal: #0000FF; fp-font-color-hover: #FFFFFF; fp-bgcolor: #800000; fp-transparent: 1" fp-title="Home">
Ive tried(1,0,/*id*/'img3',/*url*/images/menutabs/'homebutton3.gif'
also tried
(1,0,/*id*/'img3',/*url*/*images*/*menutabs*/'homebutton3.gif'
and....
(1,0,/*id*/'img3',/*url*images*menutabs*/'homebutton3.gif'
Im just guessing here, so if someone could send me the right way. This shouldn't be that hard.

I'm just going to take a blind stab at this, as you never bothered to post this FP_swapImg(var, var, var, var) function.
Try (1,0,/*id*/'img3',/*url*/'/images/menutabs/homebutton3.gif' or (1,0,/*id*/'img3',/*url*/'images/menutabs/homebutton3.gif'

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |