hey i need a few snippets for my layout...i have looked at some different ones and they havnt owrked for me...i need: rollover image fade (the one where it changes the alpha) and the rollover image swapping (need one thats tested and works plz),
also when i do an iframe i get the bottom scroller too and i dont want that...how do i get rid of it cause im having trouble...if you have any of these codes plz let me kno em thx
Html snippets
Started by -GhoSt-, May 26 2005 08:12 PM
2 replies to this topic
#1
Posted 26 May 2005 - 08:12 PM
#2
Posted 27 May 2005 - 08:13 PM
Here is the fading image. This one works with FF and IE
Uhh, I do not know the other two off hand, but I bet if you google it, you can find them out,
<!-- Fade Script -->
<script language="javascript1.2">
//Gradual-Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}
function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
<a href="NO WHERE"><img border="0" src="IMAGE.IMAGE" width="100" height="100" style="filter:alpha(opacity=30);-moz-opacity:0.3" onmouseover="high(this)" onmouseout="low(this)"></a>
Uhh, I do not know the other two off hand, but I bet if you google it, you can find them out,
#3
Posted 27 May 2005 - 11:41 PM
thx
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
