View Full Version : Put hyperlink on a Flash Banner
Funnycoolstuff
Sep 29th 2006, 2:51 am
It's easy to hyperlink an image/picture.
But how do we do it for a flash banner? Of course the hyperlink can be done if we have the fla file, but if the flash banner is aleady compiled, then is there a way to put hyperlink on the swf file?
:eek:
StrangeLife
Sep 29th 2006, 9:02 am
Hmm, tricky question, I dont know the answer but an idea you could try is to:
1.insert the swf file into your html file.
2.Create a div in your style sheet the same size as your banner and have it to float over the banner.
3.I'm not sure if you can do this, but see if you can make your floating div a hyperlink.
Thats all i can think of. :s
kk5st
Sep 30th 2006, 12:26 am
Not tested with flash object, but is valid.
html, body {
margin: 0;
padding: 0;
}
div {
width: 350px;
border: 1px solid gray;
text-align: center;
}
object {
width: 300px;
margin: 40px auto;
border: 1px solid black;
}
===========
<div>
<a href="#">
<object type="image/jpeg" data="../bullseye.jpg">
<p>alternative content</p>
</object>
</a>
</div>
Margins and borders added for clarity.
cheers,
gary
phree_radical
Sep 30th 2006, 3:49 am
FLASHPLAYER
<div style="clear:both; display:none; margin-top:-HEIGHTpx;">
<a href="whatever"><img width="WIDTH" height="HEIGHT"></a>
</div>
Would that work... p;
thevenerablez
Sep 30th 2006, 12:07 pm
In Flash, go to Window>>Behaviors. Then, click on the plus sign on the top left corner and select Go To Web Page and type in the URL.
Kirtan
Oct 1st 2006, 3:39 am
but if the flash banner is aleady compiled, then is there a way to put hyperlink on the swf file? :eek:
In Flash, go to Window>>Behaviors. Then, click on the plus sign on the top left corner and select Go To Web Page and type in the URL.
He said the banner is already compiled. So No Flash here to use. I think the first reply will work for sure.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.