View Full Version : Table help
mikeda
09-14-2005, 12:08 PM
Is it possible to load an offsite html page inside of a table?
If so, what is the correct syntax
Thanks in advance!
GatorSr
09-14-2005, 04:26 PM
Your question is too general to answer.
However, consider the standard that you should only have one set of opening and closing tags for <html>, <head>, <title>, <body>, etc., so adding a complete page inside a table of an existing page will violate this rule and the result is invalid code.
How it would display would only be a guess without specifics.
More detailed questions will get faster and more complete answers.
Good luck
mikeda
09-14-2005, 04:58 PM
What I want to be able to do is the following for banner pages
What I want to acheive is to have 4 banners on a web page (Many pages)
My thoughts were to create 4 tables on the page, each 500 x 80 pixels
and then somehow load a different html page into each table
ad1.html would have banner1.jpg and its corresponding link
this would be loaded into table 1 on the web page, same for all 4 tables
This way if I changed a banner or advertiser I could make a change
to ad1.html and banner1.jpg and this would change across all pages
Can someone help with coding this?
The tables would be from top to bottom, centered on the page
And the html page that would be loading would only have the single
banner and link on it
1
2
3
4
Thanks!
GatorSr
09-14-2005, 06:35 PM
Hmmm.
Seems easy now. There will be more to this than just a table, though. You have "other" pages, so there must be links. The table part is easy, but can't guarantee it will fit or display properly without seeing the rest of your page code.
<table width="500">
<tr>
<td width="500" height="80"><a href="yourlinkedpage1.html"><img src="banner1.jpg" width="500" height="80" alt="Advertising banner" border="0"></a></td>
</tr>
<tr>
<td width="500" height="80"><a href="yourlinkedpage2.html"><img src="banner2.jpg" width="500" height="80" alt="Advertising banner" border="0"></a></td>
</tr>
<tr>
<td width="500" height="80"><a href="yourlinkedpage3.html"><img src="banner3.jpg" width="500" height="80" alt="Advertising banner" border="0"></a></td>
</tr>
<tr>
<td width="500" height="80"><a href="yourlinkedpage4.html"><img src="banner4.jpg" width="500" height="80" alt="Advertising banner" border="0"></a></td>
</tr>
</table>
The file names in the <a href> tags and image names may need to be changed, but this may do what you need.
Good luck
mikeda
09-14-2005, 08:43 PM
Thanks, but that is not quite what I need....
For example, you have 3 domain names and you want to put
4 banners with their perspective links on each page.
I need a way to make a single change that will effect all domains
So I can't actually load a banner or link on any page
What I would be loading on each domains' index page is
an "Offsite" html page that would contain the banner and link
If this would work it would be ideal
<td width="500" height="80"><a href="http://www.myotherdomain.com/ad1.html"></td>
<td width="500" height="80"><a href="http://www.myotherdomain.com/ad2.html"></td>
<td width="500" height="80"><a href="http://www.myotherdomain.com/ad3.html"></td>
<td width="500" height="80"><a href="http://www.myotherdomain.com/ad4.html"></td>
ad1.html would just have a banner on it banner1.jpg with a link
So, if I need to change ad1 across all domain names, all I would do is change
the banner and the link that is on ad4.html located at myotherdomain.com
I have MANY domains that I have to deal with so I am trying to come up with
a way to "globally" change what appears on all my pages with 1 change
bushie
09-14-2005, 09:23 PM
You could use an iframe for each site you wish to load. Do a search on the Forums for more information on these. Be aware of copyright infringements if you are displaying other people's websites without their permission however.
mikeda
09-14-2005, 09:27 PM
I will be using my own banners, loading from my own sites... Thanks!
GatorSr
09-15-2005, 01:09 AM
Take Bushie's advice, or you could simplify it and make the target the banners AND the page where they are stored. If you keep them all on one site, the target ad ad1.jpg could change as necessary on just the master site, and the code at all the remote sites would be like this:
<td width="500" height="80"><img src="http://www.myotherdomain.com/ad1.jpg" border="0"></a></td>
Your links in your example were ok, except you left out the ending </a> tag (before the </td> on each one). The <border="0"> eliminates the blue border around each banner.
Let us know how it works. Good luck
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.