Jump to content

Recommended Posts

Alright so this code, works for opera, internet explorer and firefox...but in google chrome it stopped working. If you look at this code, you'll notice the bottom tags are missing, it okay they are included in the footer. When I added the bolded areas, is when it stopped working in chrome and started working in Internet Explorer. I can't seem to find a code that will allow it to work in all 4 browsers.

 

<td valign='bottom' class='toptabs' width='90px'>

<a href="blah blah blah" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu4')">

<img src='blahblahblah' border='0'></a></td>

<td valign=bottom class=toptabs width='90px'>

<div id="anylinkmenu4" class="anylinkcss">

<a href=news.php>News</a>

<a href=castle.php>Castle</a>

<a href=chat.php>Chatter</a>

<a href=online.php>Online Users</a>

<a href=registrar.php>Registrar</a>

<a href=ospets.php>OSpets</a></div></td>

 

Here is the entire code that is having the issues:


<table width=200 height='197' border='0' cellspacing='0' cellpadding='0' background-color:#204754>
<tr>
<td class=topleft valign=middle width=200 style='background:url(/layout_images/toptest2.jpg);'>
<?php
$uquery=mysql_query("select * from player where id='$id'");
$user=mysql_fetch_array($uquery);
$Money=$user[Money];
$today=date('F jS Y  g:ia');
$Money= number_format ($Money);
print "<BR><BR><font size='2pt'>

Welcome, $mName!<br><a href=bank.php>$$Money</a> OSD<br><br><center><sub><i>$today</i></sub></center>
                            
</font></td>";
?>
<td valign='bottom' cellspacing='0' cellpadding='0' height='183' style='background:url(layout_images/righttop2.png);'>


<table cellspacing='0' cellpadding='0' height='197px' valign='bottom'>


<!--1st anchor link and menu -->
<tr><td valign=bottom class=toptabs width='90px'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">
<img src='http://i39.tinypic.com/dvhrh0.jpg' border='0' width='90px'></a></td>
<td valign='bottom' class='toptabs' width='90px'>
<div id="anylinkmenu1" class="anylinkcss">
<a href=player_estate.php>Estate</a>
<a href=barn.php>Barn</a>
<a href=messages.php>Mailbox</a>
<a href=player_diamond.php>Diamond</a>
<a href=logout.php>Logout</a></div>

<!--2nd anchor link and menu -->
<td valign=bottom class=toptabs width='90px' border='0'> 
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')">
<img src='http://i42.tinypic.com/168vp7p.jpg' border='0' width='90px'></a></td>
<td valign='bottom' class='toptabs' width='90px'>
<div id="anylinkmenu2" class="anylinkcss">
<a href=town.php>Town</a>
<a href=academy.php>Academy</a>
<a href=teams.php>Teams</a>
<a href=guidelines.php>Guidelines</a>
<a href=FAQ.php>FAQ</a></div></td>

<td valign=bottom class=toptabs width='90px' border='0px'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu3')">
<img src='http://i44.tinypic.com/2055pu0.jpg' border='0'></a></td>
<td valign='bottom' class='toptabs' width='90px'>
<div id="anylinkmenu3" class="anylinkcss">
<a href=showing.php>Showing</a>
<a href=horse_reg.php>Sale Ring</a>
<a href=vets.php>Vet</a>
<a href=farriers.php>Farrier</a>
<a href=horse_search.php>Horse Search</a></div></td>

<!--2nd anchor link and menu -->
<td valign='bottom' class='toptabs' width='90px'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu4')">
<img src='http://i44.tinypic.com/2uyt3dl.jpg' border='0'></a></td>
<td valign=bottom class=toptabs width='90px'>
<div id="anylinkmenu4" class="anylinkcss">
<a href=news.php>News</a>
<a href=castle.php>Castle</a>
<a href=chat.php>Chatter</a>
<a href=online.php>Online Users</a>
<a href=registrar.php>Registrar</a>
<a href=ospets.php>OSpets</a></div></td>

<td class=topright valign=bottom style='background:url(/layout_images/lefttop2.png);'>
<a href='dirmd/' target='_blank'><img border='0' src=http://i44.tinypic.com/xnyh76.jpg></a><img src=http://i44.tinypic.com/4glzfc.jpg></td></tr></table>

</td>
</tr>
</table>


</td>
</tr>
<tr>
<td class='leftside'></td>
<td width=751 class=middlebg>
<center> <font size=2pt>

 

Link to comment
https://forums.phpfreaks.com/topic/154599-solved-viewing-in-different-browsers/
Share on other sites

Got a live example? Most likely alot faster to solve if the entire output is seen in a browser.

 

btw, you're using some AWFUL HTML.

Welcome, $mName!<br><a href=bank.php>$$Money</a> OSD<br><br><center><sub><i>$today</i></sub></center>
                            
</font

 

 

If you take a look at http://www.w3schools.com/tags/default.asp you'll see that <center> is deprecated, I'd also do the other styling like below, and I'm sure there's a better alternative for all those spaces as well.. like padding or something. That's the way people write word documents, not how they create webpages. (for word documents it's wrong as well though).

Welcome, $mName!<br><a href=bank.php>$$Money</a> OSD<br><div style='text-align: center; vertical-align: sub; font-style: italic'>$today</div>
                            
</font

I didnt code it, tell that to my shysty ass programmer >:| I've done what I can to make it better...but i really have no idea what to do.

 

The working version would be www.one-stride.net  you can login as guest guest buy it old displays poorly in google chrome.

I ended up just redoing the whole thing, damn useless programmer :(:

 

<link rel="stylesheet" type="text/css" href="http://www.one-stride.net/nauir/css.css" />
<link rel="stylesheet" type="text/css" href="http://www.one-stride.net/nauir/anylink.css" />
<script type="text/javascript" src="http://www.one-stride.net/nauir/anylink.js">
</script>
<style>
.bg{
background-color:#ccc;
}
.main{
background-color:#fff;
}
</style>

<center>

<table border='0' cellspacing='0' cellpadding='0' background-color:#204754>
<tr>
<td class=topleft rowspan='2' valign=bottom style='background:url(/layout_images/toptest2.jpg);WORD-BREAK:BREAK-ALL; width:140px;'><?php
$uquery=mysql_query("select * from player where id='$id'");
$user=mysql_fetch_array($uquery);
$Money=$user[Money];
$today=date('F jS Y  g:ia');
$Money= number_format ($Money);
print "<BR><BR><font size='2pt'>

Welcome, $mName!<br><a href=bank.php>$$Money</a> OSD<br><br><BR>
<center><sub><i>$today</i></sub></center></font><BR></td>";
?>
</td>
<td class=toprightvalign='bottom'><img src='layout_images/righttop2.png'></td>
<td class=topright valign=bottom><img src='layout_images/lefttop2.png'></td></tr></table>

<table border='0' cellspacing='0' cellpadding='0' background-color:#204754>
<!--1st anchor link and menu -->
<tr>
<td valign='bottom' class='toptabs' style='background:url(http://i44.tinypic.com/4glzfc.jpg);width:142px; height:20px;'>
</td>

<td valign=bottom class=toptabs style='background:url(http://i39.tinypic.com/dvhrh0.jpg); width:90px; height:20px;'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')"><img src="http://i39.tinypic.com/dvhrh0.jpg" border="0"></a><div id="anylinkmenu1" class="anylinkcss" width='90px'>
<a href=player_estate.php>Estate</a>
<a href=barn.php>Barn</a>
<a href=messages.php>Mailbox</a>
<a href=player_diamond.php>Diamond</a>
<a href=logout.php>Logout</a></div></td>

<!--2nd anchor link and menu -->
<td valign=bottom class=toptabs border='0' style='background:url(http://i42.tinypic.com/168vp7p.jpg); width:90px;height:20px;'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu2')"><img src="http://i42.tinypic.com/168vp7p.jpg" border="0"></a><div id="anylinkmenu2" class="anylinkcss">
<a href=town.php>Town</a>
<a href=academy.php>Academy</a>
<a href=teams.php>Teams</a>
<a href=guidelines.php>Guidelines</a>
<a href=FAQ.php>FAQ</a></div></td>

<td valign=bottom class=toptabs border='0px' style='background:url(http://i44.tinypic.com/2055pu0.jpg); width:90px;height:20px;'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu3')"><img src="http://i44.tinypic.com/2055pu0.jpg" border="0"></a><div id="anylinkmenu3" class="anylinkcss">
<a href=showing.php>Showing</a>
<a href=horse_reg.php>Sale Ring</a>
<a href=vets.php>Vet</a>
<a href=farriers.php>Farrier</a>
<a href=horse_search.php>Horse Search</a></div></td>

<!--2nd anchor link and menu -->
<td class='toptabs' style='background:url(http://i44.tinypic.com/2uyt3dl.jpg); width:90px;'>
<a href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu4')"><img src="http://i44.tinypic.com/2uyt3dl.jpg" border="0"></a><div id="anylinkmenu4" class="anylinkcss">
<a href=news.php>News</a>
<a href=castle.php>Castle</a>
<a href=chat.php>Chatter</a>
<a href=online.php>Online Users</a>
<a href=registrar.php>Registrar</a>
<a href=ospets.php>OSpets</a></div></td>

<td valign=bottom class=toptabs>
<a href='dirmd/' target='_blank'><img border='0' src=http://i44.tinypic.com/xnyh76.jpg></a><img src=http://i44.tinypic.com/4glzfc.jpg></td>
</tr>
</table>
<table border='0' width='802' cellspacing='0' cellpadding='0'>
<tr><td class='leftside'></td>
<td width=750 class=middlebg>
<center><font size=2pt>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.