The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Image rendering outside of Table
chill_willy
post Sep 20 2006, 02:17 PM
Post #1





Group: Members
Posts: 3
Joined: 20-September 06
Member No.: 182



Hello,

I'm a new professional, and a little green, so bear with me please.

I have a client website who makes a call from within a table to our site, where we return some javascript that is supposted to populate the table row with an image from our server. It works fine in firefox, but in explorer, the image is actually rendered outside of the table. It is in the correct location on the page, but the problem is that we have two different sized images, and we want to be able to center the image in the space. This is supposed to be handled by the table properties. I put a border on the table, and the images (There are actually two calls one above the other) are both above and below the table, not in it.

I have tried using div containers and any number of attributes in different locations, and cannot overcome this issue.

Does anyone have any suggestions on how to resolve this?

Thanks,

Wayne
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 20 2006, 02:33 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



I think we'll need a URL to help you . . .
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
chill_willy
post Sep 21 2006, 06:50 AM
Post #3





Group: Members
Posts: 3
Joined: 20-September 06
Member No.: 182




it is probably best for me to give you a section of their html code to protect the anonymity of our client site, but here is the code from the website (Please note the I replaced the var smAd src with a test page for troubleshooting purposes, it would normally be a call to our server):

BurstCode.prototype.writeSmallAd = function() {
var rnum=Math.round(Math.random() * 100000);
var smAd=' <scr'+'ipt src="test.js"></scr'+'ipt>';
return smAd;
};
BurstCode.prototype.writeStaticAd = function() {
var rnum=Math.round(Math.random() * 100000);
var smAd=' <scr'+'ipt src="test.js"></scr'+'ipt>';
return smAd;
};
this.bc = new BurstCode('ad10246l');
// -->
</SCRIPT>

<script language=JavaScript type=text/javascript
xml:space="preserve">
<!--
if (this.bc.getDisplayNumber()==1) { document.write('<tab'+'le id="adBody" valign="top"><t'+'r><t'+'d>'+this.bc.writeSmallAd()+'</t'+'d></t'+'r>'); }
// -->
</SCRIPT>
<script language=JavaScript type=text/javascript
xml:space="preserve">
<!--
if (this.bc.getDisplayNumber()==1) {
document.write('<t'+'r><t'+'d><h'+'r STYLE="adBreakBar"></h'+'r></t'+'d></t'+'r>');
document.write('<t'+'r><t'+'d>'+this.bc.writeStaticAd()+'</t'+'d></t'+'r></ta'+'ble>'); }
// -->
</SCRIPT>


The test.js page is as follows:

document.write('<html>');
var rnum=Math.round(Math.random() * 100000);
var adcode='ad10246j';

document.write('<body>');
document.write(' <scr'+'ipt src="http://ads.addesktop.com/cgi-bin/ads/'+adcode+'.cgi/v=2.0D/sz=336X280A/kw=KEYWORD/'+rnum+'/RETURN-CODE/JS/"></scr'+'ipt>');
document.write('</body>');
document.write('</html>');

Again, thanks for you time on this,

Wayne
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
chill_willy
post Sep 21 2006, 08:02 AM
Post #4





Group: Members
Posts: 3
Joined: 20-September 06
Member No.: 182



I found a solution to my problem. The functions are all defined inside of another table, so I assigned centering properties to this table, and it all works now. Thanks to anyone who spent time on this.

Wayne
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 05:01 AM