Claire has attended:
Dreamweaver MX Introduction course
Dreamweaver 8 Intermediate course
Pop up menus
Hi
I'm trying to insert a pop up men, where you hover over an image and the menu drops down with links attached. I'm trying to do this by adding a behaviour to the image and it works when I press F12 to view it, but as soon as I upload it to the internet it stops working.
Any ideas?
Regards
Claire
RE: Pop up menus
Hi there Claire,
My first thought would be that the page is using some kind of external javascript file (usually .js extension) that is available on your local machine/server (when you press F12 to preview) but is either not uploaded to your online web server, or if it is uploaded, inaccessible.
Check if you're including any external scripts by looking at your code view for a line like this:
<script language="javascript" type="text/javascript" src="/scripts/global.js"></script>
The above indicates the web page is using a file called 'global.js' which is in the scripts folder which is located in the root of the web site; the source path starts with a leading slash (/).
Check that the file has been uploaded (if you use Dreamweaver to FTP your files, switch the Site panel to 'remote' view, then browse to the appropriate folder).
If the javascript file HAS been uploaded, you may need to update the latest version of the file, if it's recently been changed. Or, the root folder may be different. eg. pointing to /scripts/global.js may work on your local server, but not online server. You may need to change the source it to be relative, such as ../../scripts/global.js if the file you're showing is two directories deep.
For example, your web page may be at http://www.domain.com/products/new/page.html and the script may be at http://www.domain.com/scripts/global.js
To link absolutely, you would have the source as "/scripts/global.js". To link relatively, you would have the source as "../../scripts/global.js" -- the first two dot-dots (..) go out of the /products/new folders, returning the pointer to the root.
If all the above does not solve your problem, or you're sure it's not an external javascript problem, please reply with the URL of your web page (the exact URL please) and I'll investigate further.
Regards, Rich