Use Dreamweaver to create a dynamic link Flash button
Source: Internet
Author: User
All versions of Dreamweaver 4.0 and later provide the "insert Flash button" function. In the following example, the flash button is created and inserted by Dreamweaver.
Here we will first introduce how to create a general flash button. Taking Dreamweaver MX as an example: Create an HTML file and save it first. Click the "Flash Button" in the "Media" tab of the "Insert" menu to bring up the dialog box as shown in the figure. In the "Style" option of the dialog box, select "Slider", "Button Text", and enter "publish new post" and "Font (Font) "Select" 正 (requires additional installation), "Link", and fill in "newthread. php "," Save as(save as zookeeper and fill in mongonewthread.swf ", and then click" OK.
The link of the button cannot be changed. When you need to change the link, you have to make another one. This can also be tolerated, but if it is in a dynamic page, such as a sub-forum in the community, in "forum. php? The link of the button on the "id = 1" page is "newthread. php? Id = 1 "while in" forum. php? The link of the button on the "id = 2" page is "newthread. php? Id = 2 ", the flash button made with this method can only sigh.
Is there a way to make a flash button with a dynamic link so that the button can read the set value on the webpage and link it to the page specified by this value? The answer is yes. Here, Xiaoyang will introduce the implementation method:
Before creating the flash button, click "Hidden Field" in the "Forms" tab in the "Insert (Insert)" menu, if "Add Form Tag?" is displayed? (Add form tag ?)", If you have No other requirements, select "No )". Then, in the "Properties" window, change the name of the hidden domain to "flashbuttonlink" and the Value to "newthread. php ", this Value is the link Value of the flash later. Create a flash button according to the method described above to insert the flash button. The difference is that fill in the "Link" value with "javascript: window. location = flashbuttonlink. value, and leave the "Target" value blank or select "_ self", as shown in the figure. OK, the dynamic flash button is ready! If you want to change the Value of the link, you can change the Value of the hidden domain "flashbuttonlink. Different links are automatically created on dynamic pages such as forums, so that different "flashbuttonlink" Value values can be output to the user end. I don't need to say that?
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.