Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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

Reply With Quote
  #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>
Reply With Quote
  #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

Reply With Quote
  #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.
Reply With Quote
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.