View Full Version : Adding an image link in switch menu

08-08-2013, 02:22 PM
1) Script Title: Switch Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

3) Describe problem: Trying to add an image link inside submenu on link is showing www.wallacechamber.com/www.site.com. address with menu on it is wallacechamber.com/members.htm Please anyone!?

08-08-2013, 04:19 PM
It has nothing to do with the script. You simply cannot have a link like this anywhere (from the members.htm page's source code):

<a href="www.murphfam.com"><img src="images/websitebutt.png" border=0></a>

That needs to be:

<a href="http://www.murphfam.com"><img src="images/websitebutt.png" border=0></a>

Otherwise the browser sees it as a link to a file or folder, either of which can have www and/or extra dots (.) in their names. Since there is no such file or folder on the wallacechamber.com site, you get a 404 Not Found. Without the http:// part the browser doesn't know to look out onto the greater web.

Oh, and when linking to a domain (as opposed to a page on that domain), it's good practice to also add the trailing slash:

<a href="http://www.murphfam.com/"><img src="images/websitebutt.png" border=0></a>

Less work for the browser to do.

The browser cache may need to be cleared and/or the page refreshed to see changes.