alconebay Posted June 22, 2007 Share Posted June 22, 2007 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. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted June 22, 2007 Share Posted June 22, 2007 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. Quote Link to comment Share on other sites More sharing options...
alconebay Posted June 22, 2007 Author Share Posted June 22, 2007 Wow, I feel stupid. Dreamweaver normally takes care of that for me. Its fixed now. Thanks GingerRobot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.