$(document).ready(function(){ //$(".ks-switchable-nav li ul span a").click(function(){ //$(this).css("color","#d47328").parent().siblings('span').children("a").css("color","#896B60"); //$(this).parent().parent().parent().siblings('li').children().children().children("a").css("color","#896B60"); //}); $(".ks-switchable-nav li span a").click(function(){ $('.kk_xs').css("display","block"); }); $(".move_fla").mouseover(function(){ //console.log($(this)); var hk = $(this).attr("data-img-id"); var hks = $(this).attr("data-swf-id"); $(this).children('.kk_xs').css("display","none"); $(this).children('span').replaceWith(''); //if(int(hk) < 4){ // var arr = new array(0,1,2,3); // for() // { // } //} //$(this).parent().siblings('a').children('div').children('embed').replaceWith(''); $(this).parent().siblings('a').children('div').children('embed').replaceWith(''); $(this).parent().siblings('a').children('div').children('.kk_xs').css("display","block"); }); }); var t = 0; function loadXMLDoc(n) { var num = n; if (t == 0){ if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById(num+"swf").innerHTML = xmlhttp.responseText; } } xmlhttp.open("GET",num+".html",true); xmlhttp.send(); t = 1; } } function removeXMLDoc(n) { var other =n+10; var num = n; if (t == 1){ if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById(other+"swf").innerHTML = xmlhttp.responseText; } } xmlhttp.open("GET","html/"+num+".html",true); xmlhttp.send(); t = 0; } }