codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Layer filter called by Javascript  ranger at 00:48 on Friday, January 14, 2005
 

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="/forum//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









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  How to dynamically create a calendar when I click a button?
•  c++ tutorials
•  Update a second table
•  Trackin Site behaviour
•  variable scope problem
•  dynamic crystal report generation
•  execute an Excel macro when the sheet is changed from ASP.NET
•  Re: form
•  form


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005