Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Layer filter called by Javascript

    Hi there,

    I have a hidden layer (a gif image), as follows:
    <div id="1" style="position:absolute; left:2px; top:2px; visibility:hidden;"><img src="./image.gif"></div>

    The image becomes visible by passing the mouse cursor over a text, by calling a javascript function:
    ....." OnMouseOut="hide_layer('1');" OnMouseOver="showFilter('1');">

    The show_layer / hide_layer function are:

    <script language="JavaScript">
    <!--
    function show_layer(lname)
    {
    if(document.layers)
    document.layers[lname].visibility = 'show'
    if(document.all)
    document.all(lname).style.visibility = 'visible'
    }

    function hide_layer(lname)
    {
    if (document.layers)
    document.layers[lname].visibility = 'hide'
    if(document.all)
    document.all(lname).style.visibility = 'hidden'
    }
    // -->
    </script>

    It works fine, but I want my image to come up gradually, by using the filter:
    revealTrans(Duration=1,Transition=2)

    If anybody knows how the "show_layer" function can be modified so that the filter works, please teach me.

    Thanks a lot.
    Ranger

  • #2
    Regular Coder
    Join Date
    Aug 2004
    Location
    codegoboom@yahoo.com
    Posts
    999
    Thanks
    0
    Thanked 0 Times in 0 Posts
    *this message will self destruct in n-seconds*


  •  

    Posting Permissions

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