How To Make A Flash Banner A Link

Table of contents:

How To Make A Flash Banner A Link
How To Make A Flash Banner A Link

Video: How To Make A Flash Banner A Link

Video: How To Make A Flash Banner A Link
Video: Create a Flash Banner Hyperlink with Actionscript 2.0 2024, May
Anonim

If you do not have a ready-made html code to insert it into the page, but you have a banner, then adding the link you need is easy. Even if the banner was created using flash technology.

How to make a flash banner a link
How to make a flash banner a link

Instructions

Step 1

If the banner is created in one of the ipg, gif, bmp,.png

Step 2

First, create a tag for the image itself. In the hypertext markup language, its simplest version looks like this:.

Step 3

Please note: the src attribute specifies the relative address of the image. In this case, the browser will assume that it is located in the same server folder as the page itself, where the banner is inserted. Better to tell the browser an absolute address:.

Step 4

Add a few more attributes to this tag. Two of them will indicate the width and height of the banner. These attributes are optional, the picture will be displayed without them if the browser runs at a good speed while loading the page from the server. But if the image for some reason is not loaded, then the absence of an indication of the parameters will lead to the fact that all the remaining design elements will be out of place. - this is how the tag with dimensions will look like.

Step 5

The default browser draws a blue border around images with links. To prevent this from happening, add a border attribute to the tag for the null banner:.

Step 6

Add the title attribute. When hovering over the banner with the mouse cursor, it will contain the text for the tooltip:.

Step 7

You have prepared an image tag with the most important attributes, now you need to put it inside the link tag. Each hyperlink can be formed with two tags - closing and opening:

Step 8

The href attribute containing the address to send the request is placed in the opening tag. Insert a banner tag between these two tags:

Recommended: