SHOW:
|
|
- or go back to the newest paste.
| 1 | - | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 1 | + | xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
|
| 2 | - | <CATALOG> |
| 2 | + | } |
| 3 | - | <MEDIA> |
| 3 | + | xmlhttp.open("GET","gallery.xml",false);
|
| 4 | - | <PHOTO> |
| 4 | + | xmlhttp.send(); |
| 5 | - | <SRCP>images/pic1.jpg</SRCP> |
| 5 | + | xmlDoc=xmlhttp.responseXML; |
| 6 | - | <TITLEP>המכונית הראשית במשחק</TITLEP> |
| 6 | + | x=xmlDoc.getElementsByTagName("PHOTO");
|
| 7 | - | <WIDTHP>640</WIDTHP> |
| 7 | + | y=xmlDoc.getElementsByTagName("MOVIE");
|
| 8 | - | <HEIGHTP>260</HEIGHTP> |
| 8 | + | j=0; |
| 9 | - | </PHOTO> |
| 9 | + | i=0; |
| 10 | - | <PHOTO> |
| 10 | + | function displayPHOTO() |
| 11 | - | <SRCP>images/pic2.jps</SRCP> |
| 11 | + | {
|
| 12 | - | <TITLEP>תמונה ממרוץ שנערך במשחק</TITLEP> |
| 12 | + | srcp=(x[i].getElementsByTagName("SRCP")[0].childNodes[0].nodeValue);
|
| 13 | - | <WIDTHP>640</WIDTHP> |
| 13 | + | titlep=(x[i].getElementsByTagName("TITLEP")[0].childNodes[0].nodeValue);
|
| 14 | - | <HEIGHTP>260</HEIGHTP> |
| 14 | + | widthp=(x[i].getElementsByTagName("WIDTHP")[0].childNodes[0].nodeValue);
|
| 15 | - | </PHOTO> |
| 15 | + | heightp=(x[i].getElementsByTagName("HEIGHTP")[0].childNodes[0].nodeValue);
|
| 16 | - | </MEDIA> |
| 16 | + | txtp="<img src='"+srcp+"'alt='"+titlep+"' width='"+widthp+"' height='"+heightp+"'/><br />תיאור:" + titlep; |
| 17 | - | <MEDIA> |
| 17 | + | document.getElementById("showPHOTO").innerHTML=txtp;
|
| 18 | - | <MOVIE> |
| 18 | + | } |
| 19 | - | <SRCM>http://www.youtube.com/embed/tNjuv5Y_oA8</SRCM> |
| 19 | + | function displayMOVIE() |
| 20 | - | <TITLEM>הטריילר הרשמי למשחק</TITLEM> |
| 20 | + | {
|
| 21 | - | <WIDTHM>640</WIDTHM> |
| 21 | + | srcm=(y[j].getElementsByTagName("SRCM")[0].childNodes[0].nodeValue);
|
| 22 | - | <HEIGHTM>360</HEIGHTM> |
| 22 | + | titlem=(y[j].getElementsByTagName("TITLEM")[0].childNodes[0].nodeValue);
|
| 23 | - | </MOVIE> |
| 23 | + | widthm=(y[j].getElementsByTagName("WIDTHM")[0].childNodes[0].nodeValue);
|
| 24 | - | <MOVIE> |
| 24 | + | heightm=(y[j].getElementsByTagName("HEIGHTM")[0].childNodes[0].nodeValue);
|
| 25 | - | <SRCM>http://www.youtube.com/embed/jA90hNBUzKM</SRCM> |
| 25 | + | txtm="<iframe width='"+widthm+"' height='"+heightm+"' src='"+srcm+"' frameborder='0' allowfullscreen/></iframe><br />תיאור:" + titlem; |
| 26 | - | <TITLEM>סרטון המתאר את המשחק</TITLEM> |
| 26 | + | document.getElementById("showMOVIE").innerHTML=txtm;
|
| 27 | - | <WIDTHM>640</WIDTHM> |
| 27 | + | } |