I've got a little prob ...
my homepage (index.php) is on the server root but all my others php pages are in a folder call PHP. I alway use a JS file so i put all my javascript in and this file is on a folder call INCLUDE.
so i've got this on server :
INCLUDE
PHP
IMAGES
index.php
My prob is that when i link my .js file to index.php, if i've rollover button script, the way to the image files is "images/" ....
but this same rollover button script have to work with the others .php page, and the way to reach the image files is now "../images/".
Is there a way to set a variable so when i detect i'm on index.php, i'll use "images/" and when i'm on the others pages, use "../images/" ?????
I know it's more a javascript question but i didn't know where to post my question ...
Thanx in advance
Steve