Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.open("GET","gallery.xml",false);
- xmlhttp.send();
- xmlDoc=xmlhttp.responseXML;
- x=xmlDoc.getElementsByTagName("PHOTO");
- y=xmlDoc.getElementsByTagName("MOVIE");
- j=0;
- i=0;
- function displayPHOTO()
- {
- srcp=(x[i].getElementsByTagName("SRCP")[0].childNodes[0].nodeValue);
- titlep=(x[i].getElementsByTagName("TITLEP")[0].childNodes[0].nodeValue);
- widthp=(x[i].getElementsByTagName("WIDTHP")[0].childNodes[0].nodeValue);
- heightp=(x[i].getElementsByTagName("HEIGHTP")[0].childNodes[0].nodeValue);
- txtp="<img src='"+srcp+"'alt='"+titlep+"' width='"+widthp+"' height='"+heightp+"'/><br />תיאור:" + titlep;
- document.getElementById("showPHOTO").innerHTML=txtp;
- }
- function displayMOVIE()
- {
- srcm=(y[j].getElementsByTagName("SRCM")[0].childNodes[0].nodeValue);
- titlem=(y[j].getElementsByTagName("TITLEM")[0].childNodes[0].nodeValue);
- widthm=(y[j].getElementsByTagName("WIDTHM")[0].childNodes[0].nodeValue);
- heightm=(y[j].getElementsByTagName("HEIGHTM")[0].childNodes[0].nodeValue);
- txtm="<iframe width='"+widthm+"' height='"+heightm+"' src='"+srcm+"' frameborder='0' allowfullscreen/></iframe><br />תיאור:" + titlem;
- document.getElementById("showMOVIE").innerHTML=txtm;
- }
Advertisement
Add Comment
Please, Sign In to add comment