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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.