Flash Image Browsing

Source: Internet
Author: User

Flash Image Browsing


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.


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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.