Want to thank and support me for my work?
Buy my iWebFAQ.org E-Book (15$) (reviews) (sample) or...
iWebFAQ.org is presented by Cédric and hosted by HostExcellence
It is currently Sun May 26, 2013 9:59 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Placing a drop shadow behind the main page
Author Message
 Post subject: Placing a drop shadow behind the main page
PostPosted: Sat Apr 07, 2012 4:05 am 
Offline

Joined: Thu Apr 21, 2011 1:20 am
Posts: 22
Hi Cedric,

I would like to have a shadow behind my page background and above the browser background on this recent site done in iWeb www.bathroomsandkithchenstoo.com. The browser background is an image. For example, in the iWeb themes "Layered Paper" I understand how they they built it in PS, added rounded corners and a shadow, added a piece of the static background around the edges, then cut it into three horizontal pieces so the page can expand up and down with content as needed when it is "tiled".

However, the browser background in the iWeb "Layered Paper" theme is a static image that can be "tiled" to fill the area to infinity so I can't use this with an image that changes. (see the image background of website above). How do I apply a drop shadow behind a page background and above a browser background that is an image, not a static color? For my site www.worksofbart.com I created a page background file in PS that is shadowed, rounded corners, has a little edge all around of the background color, then imported it. Then I matched the solid color in the browser background and it works great. Just not sure how to do this with an image in the browser background that changes (even a gradation of color would be OK). Could this be done with code?

Any ideas would be most helpful. Thanks in advance. BP


Top
 Profile Send private message  
 
Placing a drop shadow behind the main page
Author Message
 Post subject: Re: Placing a drop shadow behind the main page
PostPosted: Sun Apr 08, 2012 1:59 am 
Online
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
I would add the top and the bottom part into the header/footer part of the page and make it look like it's the background while it isn't.

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Placing a drop shadow behind the main page
Author Message
 Post subject: Re: Placing a drop shadow behind the main page
PostPosted: Mon Apr 09, 2012 10:23 pm 
Offline

Joined: Thu Apr 21, 2011 1:20 am
Posts: 22
Thanks for your reply.
iWebFAQ wrote:
I would add the top and the bottom part into the header/footer part of the page and make it look like it's the background while it isn't.


Your idea works great with static colors, or patterns that are the same. But, unique images like the bathroom tile pattern on the site noted below move in the background as the browser window is enlarged or reduced. This is the only issue I can think of with your solution, see website example here or moving background: www.bathroomsandkithchenstoo.com.

So what if...
Since the browser background image on this site moves around and the page background image above it slides over it as you expand or reduce the browser window, is there a code for iWeb that would keep the page background and browser background fixed? If there is, it would appear that the two are locked and I could add a touch of imagery in PS around the edges of the page image like iWeb does in the "Layered Paper" theme to match them up making them appear to be the same.

I hope there is a simple code to keep the window and background image fixed. Please let me know where to place the code if there is one and if it needs to be on every page. I will use your directions with Mass Replace It to apply the code. Bart


Top
 Profile Send private message  
 
Placing a drop shadow behind the main page
Author Message
 Post subject: Re: Placing a drop shadow behind the main page
PostPosted: Mon Apr 09, 2012 11:27 pm 
Online
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Using this code (needs to be placed somewhere after the body so I guess you can place a textbox to be replaced anywhere on the page)

<script language="JavaScript" type="text/javascript">
<!--

parent.document.body.style.backgroundColor='#fff';
parent.document.body.style.backgroundImage='url(http://www.bathroomsandkitchenstoo.com/ ... round2.jpg)';
parent.document.body.style.backgroundPosition='50% 0%';
parent.document.body.style.backgroundAttachment='scroll';
parent.document.body.style.backgroundRepeat='repeat';

// -->
</script>

gets the background fixed and centered so it doesn't move around anymore which in turn means that the vertical lines should cause no issue anymore. You may also change scroll to fixed if you don't want the background to scroll.

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Placing a drop shadow behind the main page
Author Message
 Post subject: Re: Placing a drop shadow behind the main page
PostPosted: Mon Apr 09, 2012 11:38 pm 
Online
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
You can also add

<div style="width:10px; height:10px;">
<script language="JavaScript" type="text/javascript">
<!--

parent.document.body.style.backgroundColor='#fff';
parent.document.body.style.backgroundImage='url(http://www.bathroomsandkitchenstoo.com/ ... round2.jpg)';
parent.document.body.style.backgroundRepeat='repeat';
parent.document.body.style.backgroundPosition='50% 0%';
parent.document.body.style.backgroundAttachment='scroll';

// -->
</script></div>

in an HTML Snippet if you prefer using HTML Snippets. Works only once published. The snippet itself doesn't display on the page once published. Again you may change scroll to fixed if you want to.

You may also eliminate this line
parent.document.body.style.backgroundColor='#fff';

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  






Want to support me for my work?

or buy my iWebFAQ.org E-Book (15$)

(reviews) (sample)

Thanks,
Cédric



 

This website is hosted by HostExcellence



© 2008, 2009 Powered by phpBB Group
Macinscott 3 style by Scott Stubblefield