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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Fix background code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

davethefish
Starting Member

4 Posts

Posted - 20 January 2006 :  13:25:11  Show Profile
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  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 20 January 2006 :  14:55:51  Show Profile  Visit AnonJr's Homepage
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>
Go to Top of Page

davethefish
Starting Member

4 Posts

Posted - 20 January 2006 :  15:46:20  Show Profile
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?
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 January 2006 :  16:17:49  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 20 January 2006 :  16:51:45  Show Profile  Visit AnonJr's Homepage
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.)
Go to Top of Page

davethefish
Starting Member

4 Posts

Posted - 20 January 2006 :  18:20:33  Show Profile
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
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 21 January 2006 :  02:34:04  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

davethefish
Starting Member

4 Posts

Posted - 21 January 2006 :  05:47:15  Show Profile
thanks again MarcelG
i did wonder, as it didn't have the strTmpPageBGImageURL before it.
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.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07