Thanks for replying Mr. jscheuer1 and beverleyh.Here is the problematic code.
This is the script for hiding and displaying the div
Code:
<script language="javascript">
function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].display = "block"
else if (document.all) document.all[''+id+''].style.display = "block"
else if (document.getElementById) document.getElementById(''+id+'').style.display = "block"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].display = "none"
else if (document.all) document.all[''+id+''].style.display = "none"
else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"
}
}
</script>
Code:
<tr><td><div id="whole" style="display:none;">
<table width="930" cellpadding="0" cellspacing="0" class="style11" border="0">
<tr>
<td width="25" class="style30b"><a href="#" onClick="marqueeInit.ar[0].direction = 'right'; return false;" class="style30b">></a></td>
<td width="890"><div class="marquee" id="mycrawler1"><?
$quer6=mysql_query("select * from whole_spice where not id1='0' order by level1 ");
while($resul6=mysql_fetch_array($quer6))
{
?>
<a href="javascript:void (0)" onClick="<?
$quer7=mysql_query("select * from whole_spice where not id1='0' order by level1 ");
while($resul7=mysql_fetch_array($quer7))
{
?><? if ($resul6 ['level1']==$resul7 ['level1']) { ?>toggleDiv ('spice_whole_<?=$resul7 ['level1'] ?>',1);<? } else { ?>toggleDiv ('spice_whole_<?=$resul7 ['level1'] ?>',0);<? } ?><? } ?>"><img src="../images/muntaha/<?=$resul6 ['image1'] ?>" width="100" height="100" border="0"/> </a>
<? } ?></div></td></tr>
</table>
</div></td>
<td width="15" class="style30b" align="left"><a href="#" onClick="marqueeInit.ar[0].direction = 'left'; return false;" class="style30b"><</a></td>
</tr>
<tr><td><div id="ground" style="display:none;">s</div></td></tr>
<tr><td><div id="blend" style="display:none;">s</div></td></tr>
<tr><td><div id="oleoresins" style="display:none;">s</div></td></tr></table>
Code:
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler1',
style: {
'width': '900px',
'height': '180px'
},
inc: 5, //speed - pixel increment for each iteration of this marquee's movement
mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
moveatleast: 2,
neutral: 150,
savedirection: true,
random: true
});
</script>
Actually i can only use display:none in my application because visibility:hidden has lot of disadvantanges like opening up the space even if it is not visible.The crawler turned out to be very useful and great script for me. But this problem has hit the roadblock.
Bookmarks