Page 1 of 1

GBook Modifications

Posted: Wed Jul 13, 2011 1:45 pm
by jonmac65nl
Script URL: http://www.jonmac.nl/guestbook.html
Version of script: 1.7
Hosting company: one.com


Write your message below:

I upgraded from 1.6 to 1.7. I have pretty much got the guestbook to look like it did in 1.6 except - in 1.6 I had my background as fixed. In 1.7 the background seems fixed for the whole page but when I scroll the messages, the background of that part is not fixed (it scrolls with the messages). I can't seem to find where to fix this. John, Netherlands

Re: GBook Modifications

Posted: Wed Jul 13, 2011 4:40 pm
by Henrie
Hallo John,

In the style.css file in your template folder, try changing

Code: Select all

body{margin:0; padding:0; background-image:url(images/tarten2.jpg); background-attachment: fixed; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
to

Code: Select all

body{margin:0; padding:0; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
If no background is assigned to the page in the iframe, it will be transparant and show the background of the page which contains the iframe.

Greetings,
Henrie

Re: GBook Modifications

Posted: Wed Jul 13, 2011 9:48 pm
by jonmac65nl
Henrie wrote:Hallo John,

In the style.css file in your template folder, try changing

Code: Select all

body{margin:0; padding:0; background-image:url(images/tarten2.jpg); background-attachment: fixed; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
to

Code: Select all

body{margin:0; padding:0; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
If no background is assigned to the page in the iframe, it will be transparant and show the background of the page which contains the iframe.
Thank you Henrie for your time.
I tried as you suggested (you can see the result) and I looked at the iframe file (no experience with java script) and could not see anything that seemed to be assigned to the page.

groetjes, John

Re: GBook Modifications

Posted: Thu Jul 14, 2011 4:36 am
by Henrie
Hallo John,

As you can see the background of the page is fixed now.

Only in the commentboxes there is still a background assigned. To also have this transparent you have to change the style.css file in your templates folder again.
Find:

Code: Select all

.gbook_commentbox{width:96%; height:auto; background-image:url(images/tarten2.jpg); background-attachment: fixed; margin:0 auto; border:solid 1px #CCCCCC; display: table; margin-bottom:20px;}
and change it to

Code: Select all

..gbook_commentbox{width:96%; height:auto; margin:0 auto; border:solid 1px #CCCCCC; display: table; margin-bottom:20px;}
Groeten,
Henrie

Re: GBook Modifications

Posted: Thu Jul 14, 2011 8:09 am
by jonmac65nl
Henrie,

If this keeps on I will have to buy you a case of drinks :wink:

Again, did as you suggested (I only used one "." at the beginning of the code)

The guestbook is working now exactly as I had it with 1.6 ONLY - is it possible to have the white background transparent?

thanks, John

Re: GBook Modifications

Posted: Fri Jul 15, 2011 5:36 am
by Henrie
Hallo John,

Every browser shows the tarten2.jpg background, only Internet Explorer is not playing nicely.

Try changing the following code in your guestbook.html file

Code: Select all

<iframe id="myframe" src="GBook/gbook.php" marginwidth="1" marginheight="2" style="overflow: visible; width: 98%; display: none;" name="guestbook" frameborder="0" scrolling="no"></iframe>
to

Code: Select all

<iframe id="myframe" src="GBook/gbook.php" marginwidth="1" marginheight="2" style="overflow: visible; width: 98%; display: none;" name="guestbook" frameborder="0" scrolling="no"  allowtransparency="true"></iframe>
Groeten,
Henrie

Re: GBook Modifications

Posted: Fri Jul 15, 2011 8:38 am
by jonmac65nl
Hartelijke bedankt voor al je hulp Henrie - Thank you very much for all your help Henrie - much appreciated.

John
Netherlands

Re: GBook Modifications

Posted: Fri Jul 15, 2011 4:52 pm
by Henrie
No problem, I am glad I could help.

Henrie