Jump to content

[SOLVED] Changed page from .htm to .php and my drop down menu stoped working


alconebay

Recommended Posts

Hi all! Noob here, I've been reading here for awhile but this is my first post. I have been building a rottweiler site for a friend. I just installed "The Search Engine Project" so I need to change one of my pages from .htm to .php so I can integrate the search results window into my layout. But, whenever I change the page from .htm to .php my menu, a project 7 css drop down menu, stoppes working. Why is this? I thought everything in a .php page was processed as HTML as long as it was outside any php tags. Help!

 

.htm version of site: http://vonwarterr.net/normal.htm

.php version of site: http://vonwarterr.net/vonwarterrtest.php (ignore that broken image at the bottom, thats a js jump to top button I can fix later)

 

If you need to see the css for the drop down or any other code let me know and i'll post it.

Thanks for any help.

These lines are your problems:

 

<link href="file:///C|/Vonwarterr/css_js/vonwarbody.css" rel="stylesheet" type="text/css" />
<link href="file:///C|/Vonwarterr/css_js/dropdown.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="file:///C|/Vonwarterr/vonwart/updated/assets/dropdownmenu/dropdownmenu.js"></script>

 

In your original page they were relative links:

 

<link href="css_js/vonwarbody.css" rel="stylesheet" type="text/css" />
<link href="css_js/dropdown.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="vonwart/updated/assets/dropdownmenu/dropdownmenu.js"></script>

 

So if you modify your php page to be the same as the original, it should work.

 

In fact, all of the links/references in the php page are absolute links and refer to the C drive. Looks like you need to change them all back to relative links.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.