/    Sign up×
Community /Pin to ProfileBookmark

How do I put a url into a table cell??

I have a table with a number of cells, and I want to load a url in the cell. Do I have to use an iframe? And is here any way to turn off the borders on the iframe if I do. Also, I’d like to randomize the url between several different ones, like an ad banner, but with urls instead. Is there a way to do that? Help would be appreciated, I don’t know very much and what I do know is completely self-taught. Thanks.

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@ray326Dec 05.2003 — An iframe is probably the simplest way to go and yes you can hide the boarders.
Copy linkTweet thisAlerts:
@DariaDec 05.2003 — within your <td></td>, put in

[size=1][color=blue]<iframe src="your_url.html" name="your_name" width="375" height="100" frameborder="0" scrolling="no"></iframe>[/color][/size]

This sets the iframe with width of 375 pixels, height 100 pixels, - change the values to your liking, accordingly; no frame borders (put "1" value, if you want some) and no scrolling (put in "yes" if you want it).
Copy linkTweet thisAlerts:
@jochemDec 05.2003 — To make i-frames cross-browser compattible, you should also add i-layer. You can use them together. The browser will only read the one it can. Getting rid of borders and scrollbars is no problem. Just check the sourcecode of the Alpine Trekking banner on www.alpinetrekking.com/canvas for an online example. It's all the way down in the script under <div id="banner2">.

Cheers, Jochem ?
Copy linkTweet thisAlerts:
@DariaDec 05.2003 — That's right,

put your <iframe> inside <div>

<div id="layer"><iframe src="your_url.html" name="your_name" width="375" height="100" frameborder="0" scrolling="no"></iframe></div>


you can define #layer in your CSS, giving it attributes you want, too.
Copy linkTweet thisAlerts:
@DaveSWDec 05.2003 — Another way to make it accessible is to have a hyperlink between your iframe tags:

<iframe [i]attributes in here[/i]><a href="page iframe is linked to">Your Browser does not support iframes. Please click here to go to .... </a></iframe>
Copy linkTweet thisAlerts:
@jochemDec 05.2003 — That hyperlink is also in the code on www.alpinetrekking.com/canvas. It's all in there, just check it out.

Cheers, Jochem ?
×

Success!

Help @MattchuB 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.19,
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,
)...