FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

dHTML menu help wanted

 


giovle
Hi, at the moment I'm building a website and I made a menu (with drop-down function etc) that I want to be displayed on every page. I was wondering if it was possible to make a file that contains the code for the menu and access this from every page? Something like CSS but for my dHTML menu ...

If you could help me, I would be very grateful Exclamation
giovle
Nevermind already found it Smile Razz
I just put the script in a textfile and changed the extension to ".js" then put the script onloader in my htmlfile with a src tag in it ...
Zeferman
Yeah, remotly hosted JavaScript is very useful, good luck with the website Smile
giovle
Zeferman wrote:
Yeah, remotly hosted JavaScript is very useful, good luck with the website Smile


Indeed, works quicker too! It has lots of advantages. You can change the menu in 1 file in stead of changing the script on every page. You shorten the html pages cause you don't have to copy about 700 lines of source code in every page, you just put one reference line in each page, linking them to the menufile. Quite handy isn't it Smile
tamilparks
can you please give the script with one small example
giovle
tamilparks wrote:
can you please give the script with one small example


Hi,

you can look at the page at httpl://www.idiotsdelightband.be/
But now the menu works on IE, Opera, Firefox and Safari, so all problems solved Smile
tamilparks
httpl://www.idiotsdelightband.be/ sorry its not working............. please tell me
giovle
tamilparks wrote:
httpl://www.idiotsdelightband.be/ sorry its not working............. please tell me


sorry a little typo there Wink => http://www.idiotsdelightband.be/
tamilparks
ok thanks
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.