Author |
Topic  |
|
davethefish
Starting Member
4 Posts |
Posted - 20 January 2006 : 13:25:11
|
hi, i'd like the background image i have on my forum to be fixed and the forum categories to scroll over it, i'm fairly sure either
bgproperties="fixed">
or
style=""background-attachment: fixed""
needs to added to the <body> tag in my inc_header.asp file
"<body" & strTmpPageBGImageURL & " bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
i've tried inserting the code in various places but cannot get it to work? can anyone help me? thanks Dave. |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 20 January 2006 : 14:10:00
|
There are several places in INC_HEADER.ASP where you find the <body tag. Make sure you putt it in all of them. The proper syntax for the FIXED setting should be this:
"<body" & strTmpPageBGImageURL & " bgproperties=""fixed"" bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _ I hope this helps.
[edit : changed single to double quotes... ]
|
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 20 January 2006 16:22:47 |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 20 January 2006 : 14:55:51
|
Just for my own clarification, couldn't you put this in the head as well?
<style>
body {
background-image: url(image url);
background-position: top center;
background-attachment: fixed;
}
</style>
|
 |
|
davethefish
Starting Member
4 Posts |
Posted - 20 January 2006 : 15:46:20
|
ok i've put the code into the 3 places i found the body tag, but there is an error with the first line:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/forum/inc_header.asp, line 97
"<body" & strTmpPageBGImageURL & " bgproperties="fixed" bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _ -------------------------------------------------^
any ideas? |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 20 January 2006 : 16:17:49
|
Sorry for that : change "fixed" to ""fixed"" ...
@ AnonJr, indeed ; that would work also (as a matter of fact that's how I've done it at oxle, but that would require some more changes to the basecode.) |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 20 January 2006 16:21:27 |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 20 January 2006 : 16:51:45
|
What other changes would be needed? (I'm already using a CSS'd version of Snitz, but I'm sure someone will have the question sooner or later.) |
 |
|
davethefish
Starting Member
4 Posts |
Posted - 20 January 2006 : 18:20:33
|
thanks for the help! cheers MarcelG! i've been hacking away at that for a while.... now it works a treat! these are the lines i changed in 3 places.
97) "<body" & strTmpPageBGImageURL & " bgproperties=""fixed"" bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """>" & vbNewLine & _
110) "</body & bgproperties=""fixed"" >" & vbNewLine & _
343) "<body" & strTmpPageBGImageURL & " bgproperties=""fixed"" bgColor=""" & strPageBGColor & """ text=""" & strDefaultFontColor & """ link=""" & strLinkColor & """ aLink=""" & strActiveLinkColor & """ vLink=""" & strVisitedLinkColor & """ topmargin=""20"" leftmargin=""20"">" & vbNewLine
|
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 21 January 2006 : 02:34:04
|
Dave, there's no need to change that line 110 ; it's the closingtag of <body>, so </body> would suffice.
quote: Originally posted by AnonJr
What other changes would be needed? (I'm already using a CSS'd version of Snitz, but I'm sure someone will have the question sooner or later.)
Well, if you already run a CSS'ed version of Snitz, you will have an external CSS file already, so there's not much that needs to be done, except for setting the body properties in that external CSS file. I created a 'css-parser', which parses out the file oxlescreen.css after a single click. In that way I can still use the adminpage for the colors etc, and after making some changes, update the style sheet. But I'm sure you've done something similar, so I don't think there's much that needs to be added now. |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 21 January 2006 02:36:58 |
 |
|
davethefish
Starting Member
4 Posts |
Posted - 21 January 2006 : 05:47:15
|
thanks again MarcelG i did wonder, as it didn't have the strTmpPageBGImageURL before it. |
 |
|
|
Topic  |
|