Log in

View Full Version : I'm looking for a script that loads differently for differnt browsers...



tivaelydoc
07-01-2007, 11:25 PM
...like font size 6 for IE and size 8 for FF. And also a script, like digg.com, where if you press a certain combo of buttons something happens. Any help?

Oh, is there any way i could add a autosize java script, like the one used in lightbox, but still keep the Window Widget script?

codeexploiter
07-03-2007, 10:22 AM
Based on the user browser you can perform various action. You need a good JavaScript function that detects various types of browsers. Please have a look at this page (http://www.quirksmode.org/js/detect.html)

Since you are vague about the combo of buttons item it is difficult to comment. Using JavaScript it is possible to do so many things on the basis of clicks, keypress, etc. Please be specific about what you are looking for so that forum users can provide more efficient answers.

You should post a link to the items based on which you've asked a question.

tivaelydoc
07-04-2007, 05:13 AM
Oh ok. Thanks. Here's the problem I'm trying to solve:

There is this script:

http://www.dynamicdrive.com/dynamicindex1/slideinmenukey.htm

and instead of it opening on just one key, I want it to open on several keys (one after another, like A then D then F), but how do I?

I think this is the part of that code:

if (ns4)
document.captureEvents(Event.KEYPRESS)
function menuengine(e){
if (ns4||ns6){
if (e.which==120)
pull()
if (e.which==122)
draw()
}
else if (ie4){
if (event.keyCode==120)
pull()
if (event.keyCode==122)
draw()
}
}