Advanced Search

Results 1 to 3 of 3

Thread: I'm looking for a script that loads differently for differnt browsers...

  1. #1
    Join Date
    Jul 2007
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default I'm looking for a script that loads differently for differnt browsers...

    ...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?
    Last edited by tivaelydoc; 07-01-2007 at 11:59 PM. Reason: one more thing

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,626
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    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

    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.

  3. #3
    Join Date
    Jul 2007
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    Oh ok. Thanks. Here's the problem I'm trying to solve:

    There is this script:

    http://www.dynamicdrive.com/dynamici...einmenukey.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:
    PHP 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()
    }


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •