Author |
Topic  |
|
yigal7
Junior Member
 
297 Posts |
Posted - 20 August 2004 : 07:09:18
|
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
|
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. |
 |
|
yigal7
Junior Member
 
297 Posts |
Posted - 22 August 2004 : 06:46:21
|
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"" -------------------------------------------------------------------------------------------------------------------------------^
|
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 22 August 2004 : 13:51:05
|
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. |
 |
|
yigal7
Junior Member
 
297 Posts |
Posted - 23 August 2004 : 03:42:31
|
did that but i need my site in RTL and some how the code i added change it back to LTR.
|
 |
|
|
Topic  |
|