Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Trying again.

  1. #1
    Join Date
    Aug 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Trying again.

    I am having an issue on getting a delay on the hiding of some layers. Currently I have a show layers on a button. When they roll over this button it shows 2 layers the main layer and a layer that has a hide layer command on it. The hide layer is becuase there are also dropdowns associated with the buttons on the main layer. refer to this page http://www.firstingraphix.com/sri/repairservice.asp for an example. What I am trying to do is to add a delay on the mouseover command on the hide layer so that it does not immediately hide the layers. Any help would be greatly appreciated as I am still a novice programmer.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    onmouseover="setTimeout('hideLayer()', 5000);"
    hideLayer() is the code to execute (don't miss the quotes); 5000 is the milliseconds to wait.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I put the code into the page and put the names in the () brackets in quotes. The layers appear but do not hide on the roll over of the hide layer (the purple layer that appears. How do I get the layers to disappear. Thank for your help in advance. http://www.firstingraphix.com/sri/repairservice.asp

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If there are any quotes inside the code you put as the argument, you must escape them (put \ before them).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I appreciate the help, I am kind of new to programming so I am having a bit of a time following. Here is what I have put in the code.

    onmouseover="setTimeout('hideLayer('repairhide','repairservicesover','endoscopylist','ultrasoundlist','instrumentlist')', 2000);"

    What am I doing wrong? This is the mouseover for the purple layer that pops up.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    onmouseover="setTimeout('hideLayer(\'repairhide\',\'repairservicesover\',\'endoscopylist\',\'ultrasoundlist\',\'instrumentlist\')', 2000);"
    Simple as that.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Twey,

    Still not quite working properly. I am inserting the whole code for the layer. it is as follows:

    <div id="repairhide" style="position:absolute; left:0; top:64px; width:800px; height: 279px; z-index: 10; visibility: hidden; background-color: #990099; layer-background-color: #990099; border: 1px none #000000;" onmouseover="setTimeout('hideLayer(\'repairhide\',\'repairservicesover\',\'endoscopylist\',\'ultrasoundlist\',\'instrumentlist\')', 2000);"><img src="mm_assets/style1/h/closer.gif" width="803" height="281"></div>

    can you help me dicifer this a bit more. I appreciate the help. I donot know if it makes a difference but I am showing the layer with the show/hide layer in Dreamweaver.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Well, it all ought to work as far as I can see. I don't know how Dreamweaver works, though. How does it fail? What is the error you get?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Aug 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The layers pop up but when I roll onto the layer that is programmed to hide them nothing happens. The page does not throw any errors, the layers just do not disappear.

    if you want to see whatit is doing you can look at the page http://www.firstingraphix.com/sri/repairservice.asp

    roll over the Repair Service button on the left, when rolled over it show the layer with the replacememnt button and the hide layer, which currently is purple just for ease of showing. if you roll off the layer with the buttong on to the purple layer, all of them should disappear.

  10. #10
    Join Date
    Aug 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    actually I take that back once i roll over it, it gives me an error. When I roll over

    it says
    Line: 1
    Char: 1
    Error: Object Expected
    Code: 0
    URL: http://www.firstingraphix.com/sri/repairservice.asp

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
  •