/    Sign up×
Community /Pin to ProfileBookmark

Hey all,
I have a .swf file in a td cell. I haven’t a link in the .swf is there a way to make the whole td a link therefore the .swf would become a link too?
Thanks,
Leo

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@ryanbutlerFeb 21.2007 — You could surround the swf file inside an anchor tag and then make the link block level inside the table cell:

[CODE]td a{
display:block;
}[/CODE]


This would make the link fill up the entire table cell contents.
Copy linkTweet thisAlerts:
@le007authorFeb 22.2007 — Hey buddy, thanks for the reply. I tried surrounding the swf file in an anchor but it didn't work at the time. Will try what you have suggested, thanks!
Copy linkTweet thisAlerts:
@Leon945Feb 22.2007 — hmm.. well i did something similar to what you are saying..

but i did it with javascript.

something like this
[code=html]
<HTML>
<HEAD>
<script>
function goto(url){
window.location=url;
}
</script>
</HEAD>

<BODY>
<table>
<tr>
<td onClick="goto('webpage.html')">
<!--flash object-->
</td>
</tr>
</table>
</BODY>
</HTML>
[/code]


this way the whole cell becomes clickable...

hope this helps
Copy linkTweet thisAlerts:
@le007authorFeb 22.2007 — Thanks for that buddy, having a look around to see if I can put swf file as a background or something. Thanks!
×

Success!

Help @le007 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...