hi all,
i am using this javascript code which i found on a random website to create a tooltip style popup. in my head is:
in my body is:
this creates a little bird, which displays latest tweet when rolled-over.
you can see a working example of this here:
http://nang-nang.net/tumblr/blog/try.html
my question are:
(1) can i add something to the javascript to create a delay when onMouseOut so that the tweet doesn't disappear immediately?
also
(2) could i also add something to the javascript to create a visual effect when onMouseOver or onMouseOut occurs? like a fade in effect? or slide up effect? i've been playing around with scriptaculous effects but i'm not sure how to combine that script with my script above.
an answer to (1) at least would be very much appreciated!
i am using this javascript code which i found on a random website to create a tooltip style popup. in my head is:
Code:
<script type="text/javascript"> function showmenu(elmnt) { document.getElementById(elmnt).style.visibility="visible" } function hidemenu(elmnt) { document.getElementById(elmnt).style.visibility="hidden" } </script> <style type="text/javascript"> #twittericon { position: fixed; bottom:148px; left: 6%; width: 33px; height:29px; z-index: 49; } #tweet{ position:fixed; bottom:178px; left: 3%; max-width:310px; color:#333333; font-family:Arial Narrow,Arial,Sans-serif; font-size:12px;; z-index:6000; visibility: hidden; } </style>
Code:
<div id="twittericon" onMouseOver="showmenu('tweet')" onMouseOut="hidemenu('tweet')"> <a href="http://twitter.com/bubblejam" target="_blank"> <img src="http://nang-nang.net/tumblr/blog/twit-bird.gif" width="33" height="29" /></a> </div> <div id="tweet"> (latest tweet generating code) </div>
you can see a working example of this here:
http://nang-nang.net/tumblr/blog/try.html
my question are:
(1) can i add something to the javascript to create a delay when onMouseOut so that the tweet doesn't disappear immediately?
also
(2) could i also add something to the javascript to create a visual effect when onMouseOver or onMouseOut occurs? like a fade in effect? or slide up effect? i've been playing around with scriptaculous effects but i'm not sure how to combine that script with my script above.
an answer to (1) at least would be very much appreciated!
Comment