PDA

View Full Version : Getting Java to work in a html add


ChErAbOo
02 Aug 2006, 21:37
I have added in a nice script for my guild forum only thing the java is not working via the cmps anyhelp would be appreciated nice scipt would like to integrate it into the portal..page is here as you can see if has a error and its not poping up the box here on scroll over..

http://www.arcanusdraconum.com/index.php?page=gb

now the orginal html file its linked too works fine can see it here

http://www.arcanusdraconum.com/html/bank.html

I am just trying to get it to work inside the portal any advice I would appreciate the script is


<script language="JavaScript">
<!--
ns4 = document.layers
ie4 = document.all
nn6 = document.getElementById && !document.all
function hideObject(id) {
if (ns4) {
document.id.visibility = "hide";
} else if (ie4) {
document.all[id].style.visibility = "hidden";
} else if (nn6) {
document.getElementById(id).style.visibility = "hidden";
}
}
function showObject(id) {
if (ns4) {
document.id.visibility = "show";
} else if (ie4) {
document.all[id].style.visibility = "visible";
} else if (nn6) {
document.getElementById(id).style.visibility = "visible";
}
}
//-->
</script>


IN Line is..example

<a onClick=javascript:window.open("http://www.thottbot.com/?s=Small+Glimmering+Shard","blank",""); style="text-decoration: none" onMouseOver="javascript:showObject('Crillence2');" onMouseOut="javascript:hideObject('Crillence2');"><span style="position:absolute; cursor:hand;"><table width=36 height=40 cellpadding=0 cellspacing=0 border=0><tr><td valign=bottom align=right><span style="font-size: 12px;color: white; font-weight:bold;"></span></td></tr></table></span><img src="images/INV_Enchant_ShardGlimmeringSmall.jpg" width=40 height=40 border=0 style="margin-right: 0px; border: 0px""></a>

thanks in advanced for any thoughts on what might make this work without a error