日期:2014-05-18  浏览次数:20546 次

高手帮忙看下下面这段代码!谢谢!
下面这段代码是在JAVA类里面写的,我摘取了以下重要部分:
代码执行出来的效果就是:循环显示图片,如CSDN首页的左边部分,可以点击1,2,3来更换图片,我自己看了这段代码,一直看不懂,请高手帮忙解读下,特别是点击数字1,2,3更换图片时,那1,2,3是这么来的!谢谢了
picss的值   :   /myweb/news/Upload/0704090419200.jpg|/myweb/news/Upload/06122511455401.jpg
linkss的值   :   http://home.xaonline.com/f/2007-4-9/1176106574185_1.html|http://home.xaonline.com/f/2006-12-25/1167018319179.html
textss的值   :时尚创意田园风格纸巾盒|整体卫浴优点体现时尚
     
  String   htmltext= " ";
htmltext=htmltext+( " <script   type=text/javascript>   ");
          htmltext=htmltext+( "var   focus_width= "+width+ ";var   focus_height= "+height+ ";var   text_height=20;var   swf_height   =   focus_height+text_height;     ");
          htmltext=htmltext+( "var   pics= ' "+picss+ " ';var   links= ' "+linkss+ " ';var   texts= ' "+textss+ " ';     ");
          htmltext=htmltext+( "document.write( ' <object   classid=\ "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\ "   codebase=\ "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\ "   width=\ " '+   focus_width   + '\ "   height=\ " '+   swf_height   + '\ "> ');     ");
          htmltext=htmltext+( "document.write( ' <param   name=\ "allowScriptAccess\ "   value=\ "sameDomain\ "> <param   name=\ "movie\ "   value=\ "http://sx.house.sina.com.cn/images/pixviewer.swf\ "> <param   name=\ "quality\ "   value=\ "high\ "> <param   name=\ "bgcolor\ "   value=\ "#DADADA\ "> ');     ");
          htmltext=htmltext+( "document.write( ' <param   name=\ "menu\ "   value=\ "false\ "> <param   name=wmode   value=\ "opaque\ "> ');     ");
          htmltext=htmltext+( "document.write( ' <param   name=\ "FlashVars\ "   value=\ "pics= '+pics+ '&links= '+links+ '&texts= '+texts+ '&borderwidth= '+focus_width+ '&borderheight= '+focus_height+ '&textheight= '+text_height+ '\ "> ');     ");
          htmltext=htmltext+( "document.write( ' <embed   src=\ "http://sx.house.sina.com.cn/images/pixviewer.swf\ "   wmode=\ "opaque\ "   FlashVars=\ "pics= '+pics+ '&links= '+links+ '&texts= '+texts+ '&borderwidth= '+focus_width+ '&borderheight= '+focus_height+ '&textheight= '+text_height+ '\ "   menu=\ "false\ "   bgcolor=\ "#DADADA\ "   quality=\ "high\ "   width=\ " '+   focus_width   + '\ "   height=\ " '+   swf_height   + '\ "   allowScriptAccess=\ "sameDomain\ "   type=\ "application/x-shockwave-flash\ "   pluginspage=\ "http://www.macromedia.com/go/getflashplayer\ "   /> ');document.write( ' </object> ');     ");
          htmltext=htmltext+( " </script>     ");