Author |
Topic  |
|
Yamaboy
Starting Member
46 Posts |
Posted - 15 March 2006 : 14:56:11
|
Thanks for the help with previous issues. Here is my current question. Is there a way to use a background image in the forum and not have it repeat on the y axis? My current solution without getting into the code is to make a long vertical image. The image I would like to uses a gradient fade to white, so if I could set the background as white with the image on top of it, that would be fine. Ususally this is done through CCS, but I have no idea how that would apply to the snitz software. Thanks. |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 15 March 2006 : 15:44:20
|
Around line 260(ish) in inc_header.asp you should see some other CSS thats included in all the pages in the forum. You should be able to add the CSS for the image here and see it on almost all the pages. I'd set the regular page background using your admin panel.
The only pages this won't affect are the pages that use inc_header_short.asp and these are usually your pop-up type pages so it probably won't be a big deal.
Just a quick stab at it, and lines 260(ish) - 262(ish) should look something like this (with changes in red): "<style type=""text/css"">" & vbNewLine & _
"<!--" & vbNewLine & _
"body {background:url(yourimagehere) repeat:repeat-y;}" & vbNewLine & _
"a:link {color:" & strLinkColor & ";text-decoration:" & strLinkTextDecoration & "}" & vbNewLine & _ |
Edited by - AnonJr on 15 March 2006 15:45:31 |
 |
|
Yamaboy
Starting Member
46 Posts |
Posted - 15 March 2006 : 16:30:00
|
I think that got it. I actually ended up just using this. Seems to work well.
"<style type=""text/css"">" & vbNewLine & _ "<!--" & vbNewLine & _ "body {background-image:url(folder/background.jpg); background-repeat: no-repeat; }" & vbNewLine & _ "a:link {color:" & strLinkColor & ";text-decoration:" & strLinkTextDecoration & "}" & vbNewLine & _
Thanks AnonJr. |
Edited by - Yamaboy on 15 March 2006 16:34:33 |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 15 March 2006 : 19:19:56
|
As long as you're happy with it. 
Glad to help.  |
 |
|
localgeek
Starting Member
3 Posts |
Posted - 19 May 2006 : 07:29:39
|
How about a gradient background? My site (http://mylocalgeek.net) uses a gradient background fade.
I've used the Site Integration mod (great, by the way) to integrate the forum into me site design, but I'd like to include the gradient background coding. Currently, it looks like this:
<body topmargin="24" leftmargin="24" rightmargin="24" bottommargin="24"; style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#FFFFFF', startColorstr='#C0CFE2', gradientType='0');"> |
Local Geek http://mylocalgeek.net |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 19 May 2006 : 08:15:45
|
Off the top of my head I'd say you could add that to the same area...
260(ish) - 262(ish) should look something like this (with changes in red):
"<style type=""text/css"">" & vbNewLine & _
"<!--" & vbNewLine & _
"body {filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#FFFFFF', startColorstr='#C0CFE2', gradientType='0');}" & vbNewLine & _
"a:link {color:" & strLinkColor & ";text-decoration:" & strLinkTextDecoration & "}" & vbNewLine & _
That's just a quick guess as I've not tried any DX effects in my websites. (a few HTA's, but not websites)
Question though, how well does this work in browsers outside of IE? |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 19 May 2006 : 08:16:38
|
It won't; filter is something Microsoft made up - IE only.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 19 May 2006 : 08:27:31
|
I'd thought so, just wasn't certain.
What alternatives are there? |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 19 May 2006 : 08:29:57
|
Use an image! 
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 19 May 2006 : 08:32:25
|
I was thinking 'other than an image'... but yeah, an image works.  |
 |
|
localgeek
Starting Member
3 Posts |
Posted - 19 May 2006 : 09:00:20
|
Can you please tell me the coding to prevent an image from "tiling" vertically when the screen exceeds the vertical height of the image?
Thanks in advance. |
Local Geek http://mylocalgeek.net |
 |
|
localgeek
Starting Member
3 Posts |
Posted - 22 May 2006 : 11:03:44
|
Shaggy (and all), Thanks for the suggestions. I re-did the backgounr using CSS and an image, rather than the MS gradient filter. Works fine and is compatible with my integrated site forum, too. |
Local Geek http://mylocalgeek.net |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 22 May 2006 : 15:05:52
|
Glad you got everything set.  |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 23 May 2006 : 08:06:20
|
You're welcome
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
|
Topic  |
|