Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: addvertisement on yahoo!!


Message #1 by "ejaz" <ejaz@p...> on Tue, 24 Dec 2002 09:03:05 +0500
hi
mouse over events are very easy. i dunno what expands though, is it the
picture, or is it a whole new picture which is just biggar than the last?
anyway, try this script, and i'll leave the DHTML for you to fiddle around
with, and tweak to what you want

<html>
<style>
.box {
position:absolute;
left:20px;
top:50px;
color:#ff0000;
background-color:#0000ff;
}
html
{
background-color:#00ff00;
}
</style>
<div onMouseOver="alert('Your mouse is over me');" onClick="return false;"
onMouseOut="alert('Your running away from me, coward!');" class=box>I could
be a picture or something</div>
</html>

hope this helps
if you have problems with the DHTML, tell me and i'll fix it, but say
exactly what you want first. this was just to help you realise the different
events, and how they work really

Colin

----- Original Message -----
From: "ejaz" <ejaz@p...>
To: "javascript" <javascript@p...>
Sent: Tuesday, December 24, 2002 4:03 AM
Subject: [javascript] addvertisement on yahoo!!


> hi
> These days some adds are coming on the top of yahoo. if we take a mouse
over
> the add it expands. Can anybody tell me how it is done. My idea is its all
> about hte Div.
> thanx
> Ejaz
>
>


  Return to Index