How to add link to Flash banner?

Marc0

Well-known member
Registered
Joined
Jun 6, 2012
Messages
890
Points
28
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

Well-known member
Joined
Jul 5, 2012
Messages
120
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
0
Views
2,401
Replies
0
Views
2,436
Replies
2
Views
3,461
Replies
0
Views
2,887
Replies
1
Views
2,967
Newer Threads
Replies
4
Views
4,866
Replies
1
Views
2,846
Replies
1
Views
2,947
Latest Threads
Replies
0
Views
70
Replies
2
Views
61
Replies
0
Views
76
Replies
4
Views
138
Recommended Threads
Replies
9
Views
3,062
Replies
0
Views
1,989
Replies
5
Views
2,510

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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