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

liunx

Guest
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.<!--content-->An iframe is probably the simplest way to go and yes you can hide the boarders.<!--content-->within your <td></td>, put in<br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"your_url.html" name="your_name" width="375" height="100" frameborder="0" scrolling="no"></iframe><br />
<br />
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).<!--content-->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 <!-- w --><a class="postlink" href="http://www.alpinetrekking.com/canvas">www.alpinetrekking.com/canvas</a><!-- w --> for an online example. It's all the way down in the script under <div id="banner2">.<br />
<br />
Cheers, Jochem :cool:<!--content-->That's right,<br />
put your <iframe> inside <div><br />
<div id="layer"><iframe src=http://www.webdeveloper.com/forum/archive/index.php/"your_url.html" name="your_name" width="375" height="100" frameborder="0" scrolling="no"></iframe></div><br />
<br />
<br />
you can define #layer in your CSS, giving it attributes you want, too.<!--content-->Another way to make it accessible is to have a hyperlink between your iframe tags:<br />
<br />
<iframe attributes in here><a href=http://www.webdeveloper.com/forum/archive/index.php/"page iframe is linked to">Your Browser does not support iframes. Please click here to go to .... </a></iframe><!--content-->That hyperlink is also in the code on <!-- w --><a class="postlink" href="http://www.alpinetrekking.com/canvas">www.alpinetrekking.com/canvas</a><!-- w -->. It's all in there, just check it out.<br />
<br />
Cheers, Jochem :cool:<!--content-->
 
Back
Top