Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 20th, 2008, 08:49 PM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with iframe /and full screen

i have a problem using iframe for viewing some photo. i want the "black background color" for full screen. not just on the iframe page.
please take a look on this page http://www.madagascar4christ.com/tes..._lightview.htm
please help

  #2 (permalink)  
Old August 21st, 2008, 02:00 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Code:
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>

<style>
body { background-color: black; color: yellow; }
iframe { width: 1042px; height: 812px; }
</style>

</head>

<body bottommargin="0">
<iframe name="I1" src="http://www.madagascar4christ.com/test_lightview2.htm" align="right" 
        frameborder=0 allowtransparency="true">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>i want to have the &quot;black color&quot; background in a fullscreen. </p>

</body>

</html>
  #3 (permalink)  
Old August 21st, 2008, 08:42 PM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i still have the problem. i don't want to have the "black background color" for all my page.
i want it white (white background). but when we click on the links' image then the "black background color" will appear - in fullscreen not only on the iframe page.
please take a look on this page http://www.madagascar4christ.com/tes..._lightview.htm
please help

  #4 (permalink)  
Old August 21st, 2008, 08:56 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Then you will have to modify the JavaScript code in one of those "js" libraries to change the window's background color.

That is, whatever code is doing those funky special effects, changing the IFRAME's background color to black, will have to similarly affect the main window.

If you don't understand the JavaScript code in those libraries, it won't be easy.
  #5 (permalink)  
Old May 29th, 2011, 04:29 AM
Registered User
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Simple set styles as the following =)

<head>
<title></title>
<style type="text/css">
html, body
{
margin: 0cm;
padding: 0;
height:100%;
width:100%;
background-color: #C0C0C0;
overflow: hidden;

}
Iframe
{
padding:0;
margin: 0cm;
background-color:#C0C0C0;
}
</style>
</head>
<body>
<iframe width="100%" height="100%" scrolling="auto" frameborder="0" src="http://YourURL.com">
</iframe>
</body>

Last edited by hdabbas; May 29th, 2011 at 04:30 AM.. Reason: Editing Title


Similar Threads
Thread Thread Starter Forum Replies Last Post
form diplay in full screen mateenmohd Access 2 November 15th, 2007 08:26 AM
Full screen watashi C# 2005 4 August 7th, 2007 01:05 AM
Full Screen Popup... rupen Javascript How-To 3 November 1st, 2006 03:34 AM
web pages in full screen sbjr01 BOOK: Beginning Access VBA 0 February 17th, 2006 05:16 PM
Full Screen surendran Flash (all versions) 1 August 3rd, 2004 07:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.