Esse script ele usa xml igual esse:
<?xml version="1.0"?> <!-- Paul Millar - PicturePod * Copyright © 2001 Paul Millar * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * dazzle750@hotmail.com --> <pod> <pictures title="Liz Hurley">bed_1.jpg</pictures> <pictures>bed_2.jpg</pictures> <pictures>bed_3.jpg</pictures> <pictures>bed_4.jpg</pictures> <pictures>bed_7.jpg</pictures> </pod>
E o cod em asp com o nome de pod
<%@ language="javascript" %>
<%
var pod_type = Request.QueryString("pod")
var xmlPod = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
xmlPod.load(Server.MapPath(pod_type+".xml"))
xmlPod.async = false
var xmlPodRoot = xmlPod.documentElement
var xmlPodChildren = xmlPodRoot.childNodes
var xmlPodChildLength = xmlPodChildren.length
%>
<HTML>
<HEAD>
<TITLE>PicturePod - <%=(xmlPodChildren.item(0).attributes.item(0).value+" - ("+xmlPodChildLength+" pictures)")%></TITLE>
<style type="text/css">
<!--
A {color: #9999CC;}
-->
</style>
<script language="javascript">
<!--
<%
for (var y = 0; y < xmlPodChildLength; y++) {
Response.Write("var picPod"+y+"= new Image()\n")
Response.Write("picPod"+y+".src = 'images/"+xmlPodChildren.item(y).text+"'\n")
}
%>
var img = new Array()
<%
for (var x = 0; x < xmlPodChildLength; x++) {
Response.Write("img["+x+"] = 'images/"+xmlPodChildren.item(x).text+"'\n")
}
%>
var n = 0
var i = img.length - 1
function next() {
n=n+1
document.img1.src = img[n]
if (n >= img.length) {
document.img1.src = img[0]
n=0
}
}
function previous() {
n=n-1
document.img1.src = img[n]
if (n < 0) {
document.img1.src = img[i]
n = i
}
}
//-->
</script>
</HEAD>
<BODY background="images/tile.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="0" width="100%" align="center">
<tr><td align="center" valign="top">
<map name="pod_top">
<area alt="" coords="289,4,349,29" href="javascript:window.close();void(0)">
</map>
<img src="images/pod_top.gif" border="0" usemap="#pod_top">
<br>
</td></tr>
<tr><td align="center" valign="middle">
<%
Response.Write("<img name=img1 src=images/"+xmlPodChildren.item(0).text+" border=0 align=center>")
%>
</td></tr>
<tr><td align="center" valign="bottom">
<br>
<img src="images/pod_bot.gif" alt="" border="0" usemap="#podmap">
<map name="podmap">
<area alt="" coords="291,11,346,30" href="javascript:next()" shape="RECT">
<area alt="" coords="201,10,286,30" href="javascript:previous()" shape="RECT">
</map>
</td></tr>
</table>
</BODY>
</HTML>
<%
xmlPod = null
xmlPodRoot = null
xmlPodChildren = null
xmlPodChildLength = null
pod_type = null
%>



Postagens
Não informado
