MyBB Community Forums

Full Version: jquey bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi every one,

I have developed a jquery code that make small reminding image appear on my forum
http://www.gimp-arabic.com/forum/index.php .

This is the code which I have put in "header" file
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript"> 
$(document).ready(function(){
$("#ramadan").animate({bottom:"0px"},3000);
});
</script> 
<img id="ramadan" style="position:fixed; bottom:-200px; right:0px; border:0px solid red; margin:0px; padding:0px;" src="http://img189.imageshack.us/img189/6364/ramadan.png" alt="" />


However for some reasons when I use this code the instant login and the writing page option does not appear Huh
Do you know how can I fix this?

Thanks in advance.
I hope this will explain it more.

[Image: screenshotyu.png]
you jQuery. instead of $.
Could you please change the code then post it here?
I have tried doing the changes you mentioned but it did not work.
I mean I am still getting the same bug.
Change:
$(document).ready(function(){
$("#ramadan").animate({bottom:"0px"},3000);
});
To code:
jQuery(document).ready(function(){
jQuery("#ramadan").animate({bottom:"0px"},3000);
});
I have just used the new changes on my forum. It did not work Huh
Is there any other suggestions?
Guys I think it is not very difficult for a MyBB expert to find a fix for my small addition.
Please advise.
jQuery.noConflict();
jQuery(document).ready(function($){
$("#ramadan").animate({bottom:"0px"},3000);
});
It is working properly now.
Many thanks