Sortarius
03-13-2002, 12:06 PM
There was no one who has posted under JavaScript yet. Neway, is there anyone decent with JavaScript round here? If so, I can use a hald with something.
Thanks in advance,
Sort
Thanks in advance,
Sort
Wrong topic I know, but...Sortarius 03-13-2002, 12:06 PM There was no one who has posted under JavaScript yet. Neway, is there anyone decent with JavaScript round here? If so, I can use a hald with something. Thanks in advance, Sort Flyguy 03-13-2002, 01:23 PM I do use javascript from time to time and have the javascript bible right to my side ;) To see all threads change the value from "last 5 days" to "Beginning" ChiefRedBull 03-13-2002, 03:35 PM I used to be King of some Javascript forum from the SAMS teach yourself series.. can't remember the address now.... Heh. I could always lend a hand... might be a bit rusty though. :S /me looks smug :D check out www.wsabstract.com javascript forum, its a pretty good equivalent of what we've got here... nice, friendly, clever people, willing to help for free. [edit again]Found it, www.jsworkshop.com/forum.[/edit again] Sortarius 03-14-2002, 02:25 PM Thanks Chief, Ill check the link out when I get back to work. Also, thanks for the offer Chief and Arnout. Tonight Ill log back on and give you a rundown of what I have/need. Basically though, if you go to Microsoft.com and mouse over their menu bar you will notice that it drops down. I am trying to duplicate that...but really running into problems. Its been...2 years since I had a JavaScript class, and even then we didnt go this deep into it. <g> Thanks again, Sort p.s. Ooooo there ARE posts under this topic! rofl. <kicksort> Sortarius 03-14-2002, 07:13 PM Ok, heres the deal. I am wanting to make a dropdown menu appear with a style similar to Microsoft.com with a webpage found at http://www.angelfire.com/ar3/jojo/indexx.html. Of course that page is not done yet... Anyway, I am wanting to just add in a .js to the page so that if I ever make changes to the menu I do not have to go through and do it to every page. The .js file that I want to use is attached, though the actual links may be slightly askew as I have changed the location of where I want some things placed, added others, and removed some, but have not yet actually made the changes in the .js. I do know how to make those changes though. I just need help figuring out how to a) add a .js to the page, and b) make the menu actually work. For me nothing happens. Really not sure how off based I am on it. <kickdirt> Anyway, any help at all is greatly appriciated. Sort ChiefRedBull 03-15-2002, 02:21 AM External JS files are easy to link into your pages... put this at the top of each HTML. <script lanaguage=javascript src="yourscript.js"></script>(You might have to change "src=" for "href=".. I can't remember which it is... :D) I'll check out the menu thing later. Sortarius 03-15-2002, 10:07 AM Yea Chief, that part I got. The part that is getting me though is making the local.js work. I use that tag and...well...nothing happens, so that tells me that my .js is not coded right. <g> Thats kinda what I really need help with. Sort rich2kchan 03-29-2002, 04:09 PM Sortarius, i dunno if i get wat u mean, but if ure asking how to use a .js file, u should put the tag the Chief stated above, and adds other code to ur <script> tag in order to use the function in the .js file. For example, for a .js file with name of thejs.js like this: function theFunction(){ alert("Function Used") } To use it in a html file, u may want to put something like this <html> <head> <title>The Page</title> <script language="javascript" src="thejs.js"></script> </head> <body onLoad="theFunction()"> <p>Contents Go Here</p> </body> </html> This html file should be in the same directory as the thsjs.js file. By loading it in a browser, u should get the alert box saying Function Used, meaning that it is using the theFunction function in the .js file. I hope i get wat u means, does it help? |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum