sheringham Posted October 18, 2005 Share Posted October 18, 2005 I want to have a pop-up menu on my shop banner - I've used Fireworks to create this and it has set up all the Javascript for me but I can't get the script to work in the header.php file. Any ideas? Link to comment Share on other sites More sharing options...
dave111 Posted October 18, 2005 Share Posted October 18, 2005 Does the javascript require you place some code inside the <head></head> tags.... because the header.php doesnt actually contain these tags heres the way the page displayers: <Head></Head> <Body> Header.php So you would need to see the javascript into the header tags for every page. Link to comment Share on other sites More sharing options...
sheringham Posted October 18, 2005 Author Share Posted October 18, 2005 Does the javascript require you place some code inside the <head></head> tags.... because the header.php doesnt actually contain these tags heres the way the page displayers: <Head></Head> <Body> Header.php So you would need to see the javascript into the header tags for every page. Yep, that's the problem, no header tags within which to embed the Javascript initially. Is there no way round this? Link to comment Share on other sites More sharing options...
shaytaan Posted October 18, 2005 Share Posted October 18, 2005 Yep, that's the problem, no header tags within which to embed the Javascript initially. Is there no way round this? My guess... Make those tags in the header.php and see if it works ?,???`???,?? God must love stupid people, he made so many ??,???`???,? Link to comment Share on other sites More sharing options...
sheringham Posted October 19, 2005 Author Share Posted October 19, 2005 My guess... Make those tags in the header.php and see if it works Tried it, and it's not having that - I'm stuck! I can't believe this can't be done! Link to comment Share on other sites More sharing options...
dave111 Posted October 19, 2005 Share Posted October 19, 2005 I can be done, i told you how, you need to edit each page and add the javascript between the <head> tags And yes, the pages do have head tags. Link to comment Share on other sites More sharing options...
moby74 Posted October 20, 2005 Share Posted October 20, 2005 this is the closest post that I have come to solving what I am trying to do. sorry if i'm using this post inappropriately and misunderstood. I was thinking that if I can get it to work for me I might be able to add some suggestions. Hope this is what you guys were meaning.... I am trying to add links at the top of my page. On my non oscommerce pages that use html it has dhtml menus. If i understand you right dave111 it sounds like i can probably include this if i go in and edit each page within the oscommerce. I have seen the headers so I'm guessing i can post my javascript in the header. then i must put the links in the body of each page. At least that is how I have done it on my other pages. If this sounds like a possibility i would love to hear that. I plan on trying it this weekend to see if that works. If i'm way off base here though I would appreciate a heads up. Thanks! ps if you need to see what i'm talking about the site is sunsethilljewelry.com I can be done, i told you how, you need to edit each page and add the javascript between the <head> tags And yes, the pages do have head tags. Link to comment Share on other sites More sharing options...
dave111 Posted October 23, 2005 Share Posted October 23, 2005 Yeah, you have the right idea. Heres a tip: if you want to stick code into the header on every page this could take along time. So use the find feature in dreamweaver (or similar program) put all the files in a folder, and then do a find and replace on the folder. Example: Find: </head> Replace with: <yourcode></head> This will take about 2 seconds, and save you a ton of time....obviously backup first. Link to comment Share on other sites More sharing options...
moby74 Posted October 23, 2005 Share Posted October 23, 2005 Thanks for the tip. I was actually able to put the links in the header.php and they showed up. However, I pasted the javascript into each page though so that would have saved me time. Next time I will try doing that. Yeah, you have the right idea. Heres a tip: if you want to stick code into the header on every page this could take along time. So use the find feature in dreamweaver (or similar program) put all the files in a folder, and then do a find and replace on the folder. Example: Find: </head> Replace with: <yourcode></head> This will take about 2 seconds, and save you a ton of time....obviously backup first. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.