ROLLOVER BUTTON CODE for sample above
To capture the code, press Select All then COPY the contents.
Place code into an Insert HTML (Webgem in Trellix)
MUST change each gEMDIR to GEMDIR before using code!
I have made notes in code below and it will effect functionality!
Use the Select All choice above!
Change items marked in color in the code shown below.
The code below has been modified for use in CSB and Trellix. (If not using either of those programs, replace ^GEMDIR/ with the directory where your images will be stored.)
<SCRIPT LANGUAGE="JavaScript">
<!--
function newImage(arg)
{
if (document.images)
{
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages()
{
if (document.images && (Rollover == true))
{
for (var i=0; i<changeImages.arguments.length; i+=2)
{
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var Rollover = false;
function preloadImages(){
if (document.images){
emailoff = newImage("^GEMDIR/buttonquiltlabelslongbevel.jpg");
Rollover = true;
}
}
preloadImages();
//-->
</SCRIPT>
<A HREF="id138.htm" target="_top" ONMOUSEOVER="changeImages('Reload this page', '^GEMDIR/buttonquiltlabelslonginset.jpg'); return true;" ONMOUSEOUT="changeImages('Reload this page', '^GEMDIR/buttonquiltlabelslongbevel.jpg'); return true;" Target="_Parent">
<IMG NAME="Reload this page" SRC="^GEMDIR/buttonquiltlabelslongbevel.jpg" WIDTH=146 HEIGHT=35 BORDER=0></A>
|