EDIT: It was a jquery version conflict, thanks very much guys, is working flawlessly now!!
I guys,
i'm trying to hide a div using the jquery framework, i am calling the function like this:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#pagex').hide();
});
</script>
The pagex div is showing though...
The source code:
<div id="bigslider">
<div id="slider-wrapper">
<div id="slider" class="nivoSlider">
<img src="images/sliderman/iloja1.jpg" alt="" />
<a href="http://iloja.pt"><img src="images/sliderman/iloja2.gif"/></a>
<a href="capas-acessa-rios/cat_7.html"><img src="ima开发者_开发知识库ges/sliderman/iloja3.jpg" /></a>
</div>
</div>
<div id="pagex">
<div class="repassist">reparacao</div> <a class="icon1" href="#teste">iphone2g</a> <a class="icon2" href="#LinkURL">iphone3g</a> <a class="icon3" href="#LinkURL">iphone3gs</a> <a class="icon4" href="#LinkURL">iphone4</a> <a class="icon5" href="#LinkURL">ipadwifi</a> <a class="icon6" href="#LinkURL">ipad3g</a> <a class="icon7" href="#LinkURL">ipad2wifi</a> <a class="icon8" href="#LinkURL">ipad23g</a>
</div>
</div>
</div>
Should be working, but i must warn that i am doing this inside cubecart cms/store, and the template is calling an older javascript.
Works like a charm for me > http://jsfiddle.net/4mNrs/
精彩评论