Flash Image Browsing
Loading...
After logging on, you can see the flash effect!
Use flex for development
Example and source code download: http://files.cnblogs.com/zjfree/photoView.rar
Main functions:
1. Dynamic acquisition of image data
2. Full Screen browsing
3. You can set image description information.
4. Image slide viewing
5. scroll wheel Scaling
6. The left and right keys of the keyboard can be used to control the upper and lower keys.
CodeNote:
VaR flashvars = {serverurl: "getphoto. aspx ", // the server side obtains the data page staytime: 10 // The duration of the picture during playback}; var parames = {menu: false, quality:" high ", allowfullscreen: True, wmode: "Transparent"}; swfobject. embedswf ("photoview.swf", "mycontent", "800", "600", "9.0.0", "expressinstall.swf", flashvars, parames );
Data format on the Retrieved Data Page:
Image 1url | image 2url | image 3url; Image 1 Description | image 2 Description
The image description is optional! Texthtml data format can be used for image descriptions!
How to embed flash in a blog
1. Upload the SWF file to the file.Note: When you are not logged in, you cannot access the blog garden files!
2. Upload swfobject. js expressinstall.swf
3. Edit the HTML content as follows:
<Div id = "divflash" style = "display: none;"> loading... </div> <SCRIPT type = "text/JavaScript" src = "http://files.cnblogs.com/#username #/swfobject.js"> </SCRIPT> <SCRIPT type = "text/JavaScript" >$ (document ). ready (function () {if ($ ('. author ') [0]. disabled) {$ ('# divflash '). show (); swfobject. embedswf ("http://files.cnblogs.com/?user=/myflash.swf", "divflash", "800", "600", "9.0.0", "#") ;}}); </SCRIPT>
4. Upload the image cited by flash drive with the extended name changed. jpg to. rar to the blog garden file for access!