Hi there,
Both Firefox and MS IE work well, but not Chrome. Does any body has experienced the same issue? How do you fix it? Below is the codes:
HTML:
The last one (Restaurant) is a direct invoke of php page. It does not go through Javascript and does not work too. But these codes work perfect with Firefox and MS IE. What's the problem with Chrome?Code:<ul class="ul_nav"> <li class="ul_li_nav"> <div class="tool" style="background-position:0px 0px;"></div> <a id="bInfo" class="linkon" href="BaseInfo.php">Main Info</a></li> <li class="ul_li_nav"> <div class="tool" style="background-position:0px 0px;"></div> <a id="dInfo" class="linkok" href="DetailInfo.php">Detail Info</a></li> ... <li class="ul_li_nav"> <div class="tools" style="background-position:0px -325px;"></div> <a id="eCenter" class="linkok" href="restaurant.php?frmName=initRestaurant">Restaurant</a></li> </ul>
Javascript code:
Thanks,Code:$(document).ready(function() { /* Navigate Menu */ $('#bInfo').unbind('click').click(function(e) { e.preventDefault(); if (chPSW){ chPSW = false; $(iMenu).attr('class', 'linkok'); iMenu='#bInfo'; $(iMenu).attr('class', 'linkon'); $.post('ajax.php', { frmName: 'ldMnInfo' }, function(data){ $('#mycontent').html(data); }, 'html'); chPSW = true;} }); $('#dInfo').unbind('click').click(function(e) { e.preventDefault(); if (chPSW){ chPSW = false; $(iMenu).attr('class', 'linkok'); iMenu='#dInfo'; $(iMenu).attr('class', 'linkon'); $.post('ajax.php', { frmName: 'ldDtlInfo' }, function(data){ $('#mycontent').html(data); }, 'html'); chPSW = true;} }); });


Reply With Quote
Bookmarks