How to add link to Flash banner?

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,844
Points
0
Hello!

I have a request: I have a 300x250 banner in. Fla file and I need to add a link to it and accept it. Swf.

Can someone help me with this? Owe.

Thanks in advance!

Cool to have one day!
 

webdesign

New member
Joined
Jul 5, 2012
Messages
232
Points
0
There are 2 ways to do that. Follow tips below

1. Add code to your swf file which deals with the click and opens the appropriate URL
Code:
on(release){
getURL("http://www.example.com", "_blank");
}
If it is going on a site that requires a clickTag function, then just use

Code:
on(release){
getURL(clickTag, "_blank");
}
2. Using a div with jQuery hooking up the click event:
Code:
<div id="flashads">
    <div id="hiddiv"></div>
    <div id="fsource">
        <embed class="ads" src="swf/your_banner_flash.swf" width="300" height="250" wmode="opaque"></embed>
    </div>
</div>
Code:
$("#hiddiv").click(function() {
    window.location.assign("www.example.com/yourlink.html");
});
Hope it will help you !
 
Older threads
Replies
2
Views
2,675
Replies
3
Views
6,333
Replies
0
Views
5,704
Newer threads
Replies
4
Views
5,467
Replies
0
Views
2,035
Replies
13
Views
7,929
Replies
2
Views
2,573
Latest threads
Replies
2
Views
100
Replies
9
Views
165
Replies
2
Views
91
Recommended threads
Replies
5
Views
4,151
Replies
1
Views
3,042
Replies
13
Views
4,780
Replies
3
Views
2,877

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top