|
-
HELP: Wrap LINK around Flash
Hello All,
I have several flash files i'd like to use as banner ads and link them to various pages that will change over time. I'm looking to wrap a link around the flash banner/object like a div tag with a onClick action but this does not work for me. Can someone please tell me how to do this?
Please provide the code sample too. i have looked and it seems many people are looking for the same answer.
I cannot edit the flash files to put the link in there so i need a html/javascript/css solution that i can edit the url on later to change easily where the flash links to.
-
I think I have an answer for you but it will be this afternoon before I can get to it. I'll have something posted up by tonight.
-
FK'n_dog
if you want to keep it all in Flash, make a shim swf to load the banner into.
to change the URL simply edit the shim.
example at -
http://www.jackleaman.co.uk/test/get...nner_load.html
sample file attached
-
i want/need a html non-flash solution. There has to be a way to layer a link over a flash object to override/provide a link for the flash object.
-
As I am not a great flash user I was sure this could be done. However I soon discovered you have to make a button in flash and put the link in there.
Flash Objects cant be links so it will do no good to put it in a div and make the div a link, because it is all the content of the div that will then become the link. Check in the Flash/Actionscript forum, I'm sure they can give you an answer.
Last edited by sticks464; 05-12-2007 at 10:54 PM.
-
It appears that this board uses exactly what i'm looking for.
The Banner Ads at the top are sometimes FLASH Banners, that have a Javascript link around them using a image or something.
Anyone know how to do this?
Can a TRANSPARENT GIF be layered over a flash movie, via HTML/CSS/Javascript not put into the flash movie, and the Transparent Gif then link to wherever needed?
That is what the Flash banner here seems to do and what I need.....the more i look at it here it may be a realmediaserver streaming the ads and the real media object is being "linked over" to track the views and clicks of the ad. Same thing therefore HAS to be possible to do without the streaming server....
ANYONE???
-
I found the answer! At least it works for me. I was unable to sleep with this problem not having a solution so i searched and searched and tried and tested and hacked and glued and came up with this. Just like I thought it should work!!
Code:
<div style="z-index: -1; position: absolute; height: 600px; width: 160px;">
<object width="160" height="600"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="movie" value="aquaXtowerAd.swf">
<param name="wmode" value="transparent">
<embed src="aquaXtowerAd.swf" width="160" height="600" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>
</div>
<div class="linkdiv" onclick="javascript:location='http://some.com'" id="adiv" style="z-index: 10; position: absolute; height: 600px; width: 160px;"><img src="160x600.gif"></div>
Sample Page
http://ads.wsn.cc/images/Ads/Default.htm
The transparent GIF says TEST but i will replace with one that is all transparent. Now i can use the Flash Movies/Banners i have as LINKS and generate the code from my Ad Server program! Thanks all for the clues posted here and there. I hope this helps the next person who wants a link "over" flash and cannot modify the flash file to add a normal button link.
-
Couldn't you just use a layer in Dreamweaver, and use a transparent GIF?
-
That is what i did to solve it...view the code and my message thread.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|