Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 need to add a banner
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

yigal7
Junior Member

297 Posts

Posted - 20 August 2004 :  07:09:18  Show Profile
can some one help me with a code so i can add
a banner to the inc_hedear.asp file?

ThanX
Yigal

Soar
Junior Member

USA
197 Posts

Posted - 20 August 2004 :  12:58:39  Show Profile  Visit Soar's Homepage
Not sure how others do it, but here's what I do...

Find the code:

rs.close
set rs = nothing
end if


at about line 230. Immediately below that, add the code for the banner, as in:

Response.Write "<p><center><img border=""0"" src=""yourbanner.jpg"" width=""300"" height=""234""></center>" & vbNewline

If you want it to be a hyperlink to something, then it would look like this:

Response.Write "<center><a href=""http://URL.com""><img border=""0"" src=""yourbanner.jpg"" width=""401"" height=""313""></a></center>" & vbNewLine

Of course, if the link is to a page in your root web, all you need is the name of the page rather than the full ""http://URL.com"" - use the latter to link to a separate site. Also, the width and height numbers would, of course, be changed to match the dimensions of your banner.

Also, the <center></center> tags center the image on your page - you may want to vary that.
Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 22 August 2004 :  06:46:21  Show Profile
no luck

---------------
Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/myforum/inc_header.asp, line 241

Response.Write "<center><a href=""WWW.PC4LIGHT.CO.IL""><img border=""0"" src=""http://www.gabso.com/pirsum1.gif"" width=""788""
-------------------------------------------------------------------------------------------------------------------------------^
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 22 August 2004 :  13:51:05  Show Profile
If you copied and pasted the code from the reply, make sure it's all in one line. Perhaps the code is now on two lines in your file.
Go to Top of Page

yigal7
Junior Member

297 Posts

Posted - 23 August 2004 :  03:42:31  Show Profile
did that but i need my site in RTL and some how the code i added change it back to LTR.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07