Foreground script:
<Div align = center>
<SCRIPT type = "text/JavaScript">
VaR focus_width = 253
VaR focus_height = 164
VaR text_height = 20
VaR swf_height = focus_height + text_height
VaR pics = <% = pics %>;
VaR links = <% = links %>;
VaR texts = <% = texts %>;
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 + '"> ');
Document. write ('<Param name = "allowScriptAccess" value = "samedomain"> <Param name = "wmode" value = "Transparent"> <Param name = "movie" value = "1 /pixviewer.swf "> <Param name =" quality "value =" high "> <Param name =" bgcolor "value = # ffffff> ');
Document. Write ('<Param name = "menu" value = "false"> <Param name = wmode value = "Opaque"> ');
Document. write ('<Param name = "flashvars" value = "pics =' + pics + '& links =' + Links + '& texts =' + texts + '& borderwidth =' + focus_width + '& borderheight =' + focus_height + '& textheight =' + text_height + '"> ');
Document. write ('<embed src = "1/pixviewer.swf" wmode = "Opaque" flashvars = "pics =' + pics + '& links =' + Links + '& texts =' + texts + '& borderwidth =' + focus_width + '& borderheight =' + focus_height + '& textheight =' + text_height + '"menu =" false "bgcolor = # ffffff 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> ');
</SCRIPT>
</Div>
***********************************
Background:
Public String pics = "''";
Public String links = "''";
Public String texts = "''";
Protected void page_load (Object sender, eventargs E)
{
Pics = "'1/1.jpg '" + "+' | '+" + "'1/4.jpg'" + "+ '|' +" + "'1/2.jpg' "+" + '|' + "+" '1/3.jpg '";
Links = "'img. aspx '"+" +' | '+ "+" '1/4.jpg' "+" + '|' + "+" '1/2.jpg '"+" +' | '+ "+" '1/3.jpg '";
Texts = "'title'" + "+ '|' +" + "'1/4.jpg '" + "+' | '+" + "'1/2.jpg'" + "+ '|' +" + "'1/3.jpg '";
}
Example: http://files.cnblogs.com/Fooo/WebSite1.rar