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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Tip: Fixed (non scrolling) background
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

matsd
Starting Member

Sweden
26 Posts

Posted - 19 September 2002 :  09:28:11  Show Profile  Visit matsd's Homepage
Just a simple hack. If you use a background image and you don't want it to scroll along with the rest of the page.

In inc_header.asp find the section:

if strPageBGImageURL = "" then
	strTmpPageBGImageURL = ""
elseif Instr(strPageBGImageURL,"/") > 0 or Instr(strPageBGImageURL,"\") > 0 then
	strTmpPageBGImageURL = " background=""" & strPageBGImageURL & """"
else
	strTmpPageBGImageURL = " background=""" & strImageUrl & strPageBGImageURL & """"
end if

Exchange:
strTmpPageBGImageURL = " background=""" & strPageBGImageURL & """"

with:
strTmpPageBGImageURL = " background=""" & strPageBGImageURL & """" & " bgproperties=""fixed"""

and:
strTmpPageBGImageURL = " background=""" & strImageUrl & strPageBGImageURL & """"

with:
strTmpPageBGImageURL = " background=""" & strImageUrl & strPageBGImageURL & """" & " bgproperties=""fixed"""


Done!

Mats D

Edited by - Kat on 19 September 2002 10:20:27

bonkers
Junior Member

United Kingdom
122 Posts

Posted - 19 September 2002 :  11:27:29  Show Profile  Visit bonkers's Homepage
I have never used a BG image in Snitz before but i might just try it now Thanks for the tip
bonkers
Go to Top of Page

brujo
Average Member

USA
602 Posts

Posted - 28 September 2002 :  21:47:54  Show Profile  Visit brujo's Homepage
how do you get the background image to be central and not tiling itself.....

i.e. I have a small background image - but I do not want it to show only on the left and also it is tiling itself to fill the screen.


any ideas ??

Thanks

brujo


v3.4.03
Acc 2000
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 28 September 2002 :  22:51:53  Show Profile  Visit dayve's Homepage
that's the way backgrounds work. you can make a large background and place the image in the location you want OR you can create a layer <div> and then position it absolutely on the page. I'd need to see the image and or site you want to do this on to recommend any more.

Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 29 September 2002 :  01:01:50  Show Profile
quote:
Originally posted by brujo

how do you get the background image to be central and not tiling itself.....

i think you can try add some CSS code...
maybe something like this..
style=""background-image: url('images/xxx.jpg'); background-repeat: no-repeat; background-attachment: fixed; background-position: 50% 50%""

but i have no idea how this integrate into this Mod...
how to change [blue]background=""" & strPageBGImageURL & """"[/b]
to CSS style ????.......
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 29 September 2002 :  01:05:33  Show Profile
or background-repeat:repeat-y (i think) if you want the image to go only down the left side.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 29 September 2002 :  03:45:27  Show Profile
question...
usually the pages occupied by another table display..
so if you put a small bg image on "center" of the page.
we seem not many chance to see this small bg image...

so i think Nikkol's suggest will be better ~~~
try change this
background=""" & strPageBGImageURL & """
to this
style=""background-image: url('" & strPageBGImageURL & "'); background-repeat: repeat-y; background-attachment: fixed""

not sure it will work... there are too many " make me dizzy..

Edited by - DoraMoon on 29 September 2002 03:48:58
Go to Top of Page

golfmann
Junior Member

United States
450 Posts

Posted - 30 September 2002 :  22:20:56  Show Profile  Visit golfmann's Homepage
Thanks!
I was gettin around to this!
(Saved me a lot of trouble)
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.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07