2012-01-21, 03:52 PM
Hello,
I tried to add some jQuey code in MyBB 1.6.5, but if I try to save the template, the board notices me:
I tried it again, installing jSnippet but anything changed... :/
Here you my jQuery code...
I tried to add some jQuey code in MyBB 1.6.5, but if I try to save the template, the board notices me:
Quote:The following errors were encountered:
A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
I tried it again, installing jSnippet but anything changed... :/
Here you my jQuery code...
<script type="text/javascript" src="http://www.sharefenix.com/skinfenix_utlimate/jquery-b14.js"></script> <script type="text/javascript">
var $box = $("#display");
$(document.body).click(function(){
if (!$box.has(this).length) { // if the click was not within $box
$box.fadeOut();
}
});
$("#topnav .li1,#topnav .li1 .sub").hover(function(){$('.menulink1').css("color","#333");},function(){ $('.menulink1').css("color","#fff");});
$("#topnav .li2").hover(function(){$('.menulink2').css("color","#333");},function(){ $('.menulink2').css("color","#fff");});
$("#topnav .li3").hover(function(){$('.menulink3').css("color","#333");},function(){ $('.menulink3').css("color","#fff");});
$("#topnav .li4").hover(function(){$('.menulink4').css("color","#333");},function(){ $('.menulink4').css("color","#fff");});
$("#topnav .li5").hover(function(){$('.menulink5').css("color","#333");},function(){ $('.menulink5').css("color","#fff");});
$("#topnav .li6").hover(function(){$('.menulink6').css("color","#333");},function(){ $('.menulink6').css("color","#fff");});
$("#topnav .li7").hover(function(){$('.menulink7').css("color","#333");},function(){ $('.menulink7').css("color","#fff");});
$("#topnav .li8").hover(function(){$('.menulink8').css("color","#333");},function(){ $('.menulink8').css("color","#fff");});
$("#max-menu .sub a").click(function(){
$("#max-menu .sub").fadeOut();
});
$(function() {
$("#top-link").click(
function (e) {
$("html, body").animate({scrollTop: "0px"}, 800);
}
);
});
$(document).ready(function() {
$("#footer-subscribe").val("[email protected]");
});
$("#footer-subscribe").click(function(){
var value = $(this).val();
if(value == "[email protected]"){
$(this).val("");
}
});
$("body").click(function(){
var value = $("#footer-subscribe").val();
$("#footer-subscribe").click(function(event){
event.stopPropagation();
});
if(value == "" ){
$("#footer-subscribe").val("[email protected]");
}
});
$("#footer-subscribe-submit").click(function(event){
event.preventDefault();
alert("In costruione!");
});
</script>
<script type="text/javascript">
//<![CDATA[
window.orig_onload = window.onload;
window.onload = function() {
if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}
if(typeof window.orig_onload == "function") window.orig_onload();
}
//]]>
</script>