Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image effect help please.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
image help, please. i can't really explain what it is that i want, but an example is at:
wave your mouse over the blurred image.



i want my main image do do EXACTLY like that. every site i've been to only has the " fade in & out grey to colour " scripts. i'd love it if someone helped me out. please E-MAIL me at Wetwired71@aol.com. please. thank you.
 
It is a javascript function that uses onMouseOver. If you look at the source code, they are just replacing a second image over the first one when your mouse goes over it. Here is the code: Lok for the two image names of kyrie1.jpg and kyrie.jog.

<script language=&quot;JavaScript&quot;>
var n3 = false;
image1 = new Image();
// Place your first image within the
// quotation marks on the line below.
image1.src = &quot;kyrie1.JPG&quot;;
image1on = new Image();
// Place your second image within the
// quotation marks on the line below.
image1on.src = &quot;kyrie.JPG&quot;

function on3(name)
{
document[name].src = eval(name + &quot;on.src&quot;);
}

function off3(name)
{
document[name].src = eval(name + &quot;.src&quot;);
}

n3 = true;
function on(name)
{
if (n3)
on3(name);
}

function off(name)
{
if (n3)
off3(name);
}
</script>



<!--Place this script in the BODY section.-->

<!-- Type your URL within the quotation marks below. -->
<a href=&quot;javascript:Start(' onmouseover=&quot;on('image1');&quot; onmouseout=&quot;off('image1')&quot; style=&quot;cursor:crosshair&quot;>
<!--The image name below should correspond with the first image in the <HEAD> section.-->
<img src=&quot;kyrie1.JPG&quot; border=&quot;0&quot; name=&quot;image1&quot; ALT=+tragic+></a>




Once you understand the script, you need to use a image editor and blur your image and save it as a second file.

Hope that helps.

Chad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top