4 posts tagged with javascript by Grod.
Displaying 1 through 4 of 4.

creating a gallery with mootools, can someone help?

Since all sorts of very clever people frequent metafilter I figured it would be worth a shot to repost this mootools related javascripting question here. [more inside]
posted by Grod on Dec 29, 2006 - 6 answers

How do I move this javascript out of the head and into a .js to achieve valid markup?

really basic, I think. You can't have <link /> tag inside a <script></script> using XHTML strict. I can't quite figure out how to write a function that takes the place of this basic little OS detection script <script type="text/javascript"> var cssFile = (navigator.userAgent.indexOf("Mac") != -1) ? "mac.css" : "everyonelse.css"; document.write("<link rel='stylesheet' type='text/css' href='../" + cssFile + "' />"); </script> Which I would put in the head of the document. How can I move it to a function in an external .js file and get the same result with valid xhtml 1.0 strict? It's not urgent, but it's driving me nuts because I'm really stupid about scripting but I know this sort of thing isn't supposed to be hard.
posted by Grod on Nov 13, 2006 - 17 answers

crossbrowser reusable javascript for dropdown that hides another menu when active?

What I suspect is a fairly stupid javascript question, but one I haven't found an ideal solution for. I four menus made out of unordered lists. I'm using a modified version of the suckerfish dropdown script to make it work in IE (code inside), in one place I want 1 of the four menus to stay open except when I hover on one of the remaining menus. i.e. menu1 is visible. when I mouseover menu2, menu1 is hidden. When I mouseout of menu2 menu1 reappears. [more inside]
posted by Grod on Oct 31, 2006 - 6 answers

I have a question about Javascript.

stupid javascript question. ⇒more inside[more inside]
posted by Grod on Sep 11, 2004 - 5 answers

Page: 1