请教数据岛的问题!!

如何把数据岛的内容跟JAVASCRIPT做交互啊????

如下所表示:photo_list.php里还有hit(点击),describ(描述)两个属性,如何把这两个属性作为showphoto()的参数啊??我想当用户点一个这个图片的时候,在旁边的大图片就跟着变动了,而图片下面的点击和描述也跟着变!
小弟不会写啊!!!
多谢!
例如:

1<xml id="photo_list" src="photo_list.php"></xml>
1<table datapagesize="4" datasrc="#photo_list" id="photo">
2<tr>
3<td><img alt="点击看大图" datafld="SRC" height="60" onclick="return showphoto()" style="cursor:hand" width="73"/></td>
4</tr>
5</table>
1<script>   
2function showphoto(photo)   
3{   
4document.all.bImg.src=photo.src;   
5document.all.bImg.filters.revealTrans.apply();   
6document.all.bImg.filters.revealTrans.play();//一些滤镜的效果   
7}   
8</script>

---------------------------------------------------------------

add as hidden

1<span>, then use javascript to retrieve them   
2\---------------------------------------------------------------   
3  
4XML数据岛实例:   
5http://xmlnews.sameliking.com/iisexample/data/xmlnews/default.htm</span>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus