PDA

View Full Version : a line between logo and forum



CraiovaOnLine
Mon 20th Aug '07, 6:20pm
Hello,

So I changed my header section in order to display diff. logos for diff. url's.
But there is a line between logo and forum. (www.craiova-online.ro (http://www.craiova-online.ro))
I dont know how to remove that line.
Oh..I forgot.. In firefox works fine! :confused:
This is the code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]">

<img src="http://www.craiova-online.ro/images/misc/logo_forum.jpg" id="logoul" border="0"/>
<script type="text/javascript">
var imagine=document.getElementById('logoul');
if(window.location.href.indexOf("craiova-online.ro") > -1) imagine.src="http://www.craiova-online.ro/images/misc/logo_forum.jpg";
if(window.location.href.indexOf("e-students.ro") > -1) imagine.src="http://www.e-students.ro/forum/images/misc/estud.jpg";
</script>
</td>

</tr>
</table>
<!-- /logo -->

I hope you can help me.
Thanks!

Wayne Luke
Mon 20th Aug '07, 6:32pm
Remove the <br /> from whereever you added this code:


<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<!-- USC header edit end -->
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('Are you sure you want to log out?'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<br />


Looks like it is the navbar template.

CraiovaOnLine
Mon 20th Aug '07, 6:45pm
This is the full header code

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]">

<img src="http://www.craiova-online.ro/images/misc/logo_forum.jpg" id="logoul" border="0"/>
<script type="text/javascript">
var imagine=document.getElementById('logoul');
if(window.location.href.indexOf("craiova-online.ro") > -1) imagine.src="http://www.craiova-online.ro/images/misc/logo_forum.jpg";
if(window.location.href.indexOf("e-students.ro") > -1) imagine.src="http://www.e-students.ro/forum/images/misc/estud.jpg";
</script>
</td>
<td align="$stylevar[right]">
<!-- vb add banner inceput -->
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']">
<a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a>
<br />
<else />
<if condition="$foruminfo['banner']">
<img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" />
<br />
<else />
<if condition="$foruminfo['bannercode']">
$foruminfo[bannercode]
<br />
<else />
<object>
<embed src="http://www.craiova-online.ro/imgs/advs/aflux-it.swf" quality="high" bgcolor="#ffffff" width="700" height="90" type="application/x-shockwave-flash" />
</object>
</if>
</if>
</if>
<!-- vb add banner sfarsit -->
</td>

</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->
after removing that <br /> from navbar .. the page look like this ...

Wayne Luke
Mon 20th Aug '07, 6:59pm
Isn't that how you wanted it to look like? It removed the white line between the logo and the navbar.

Andy Huang
Mon 20th Aug '07, 7:01pm
Try removing these <br />'s

<td align="$stylevar[right]">
<!-- vb add banner inceput -->
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']">
<a href="$foruminfo[bannerlink]" target="_blank"><img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" /></a>
<br />
<else />
<if condition="$foruminfo['banner']">
<img src="$foruminfo[banner]" alt="$foruminfo[banneralt]" border="0" />
<br />
<else />
<if condition="$foruminfo['bannercode']">
$foruminfo[bannercode]
<br />
<else />
<object>
<embed src="http://www.craiova-online.ro/imgs/advs/aflux-it.swf" quality="high" bgcolor="#ffffff" width="700" height="90" type="application/x-shockwave-flash" />
</object>
</if>
</if>
</if>
<!-- vb add banner sfarsit -->
</td>

I don't know what they're for, but I'm guessing they might be your culprit.

CraiovaOnLine
Mon 20th Aug '07, 7:13pm
If i remove <br /> from navbar is not what i want. That space is still there.
Only the position of navbar it's changed.
"Try removing these <br />'s"
It won't work.
That td displays some ads in the right side of the logo.
I tried to remove it but it wont change anything

Is there another code to use it for displaying different logo for different URL's?

Wayne Luke
Mon 20th Aug '07, 7:17pm
Is there another code to use if for displaying different logo for different URL's?

No.. This isn't supported.