pierre
New Member
Hey i have an issue with the plugin ,
i developped a script to work with Streamcontrol , so an xml files , it works correctly on firefox but it doesnt with the plugin , the problem come from LoadData() i think , without it the animation work
Here is my code
i developped a script to work with Streamcontrol , so an xml files , it works correctly on firefox but it doesnt with the plugin , the problem come from LoadData() i think , without it the animation work
Here is my code
Code:
function loadXMLDoc(filename)
{
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else // code for IE5 and IE6
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET",filename,false);
xhttp.send();
return xhttp.responseXML;
}
function loadData(){
xmlDoc=loadXMLDoc('streamcontrol.xml');
map_node=xmlDoc.getElementsByTagName('mapname')[0].childNodes[0];
map = map_node.nodeValue;
mod_node=xmlDoc.getElementsByTagName('modname')[0].childNodes[0];
mod = mod_node.nodeValue;
$('#map_img').attr('src' , 'img/' + map + '.png');
$('#mod_img').attr('src' , 'img/' + mod + '.png');
}
$(document).ready(function(){
loadData();
$('#title').velocity({
translateX:[0,-400],
},
{
duration:500,
display:'block',
delay:1000,
}).velocity('reverse', { delay:8000});
$('#map').velocity({
translateX:[0,-400],
},
{
duration:500,
display:'block',
delay:1400,
}).velocity('reverse', { delay:8000});
$('#mod').velocity({
translateX:[0,-400],
},
{
duration:500,
display:'block',
delay:1600,
}).velocity('reverse', { delay:8000});
});