Solved

Help with a background bitmap

Posted on 2000-03-11
4
196 Views
Last Modified: 2013-12-24
I notice that Front Page takes my 256 x 256 bit map image and "tiles" it to fill the background. Is there a way to keep this from happening? In other words - I'd prefer it "stretch" the image if needed to fill the background.

Thanks,
Chin


0
Comment
Question by:chinman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:Dassa
ID: 2609304
I don't know of anyway to do this in frontpage.  One way is to make sure your picture is actually larger than the page.  This gets a bit messy however when you design for a low resolution and the users have high resolution.
0
 
LVL 19

Expert Comment

by:daveamour
ID: 2619652
I agree with Dassa although one thing to consider is that you can detect the user's screen resolution and show an appropriately sized image....

<Script Language="JavaScript">
<!--
  if (screen.width > 800)
  {
    document.write ("<Body Background='Image1.gif'");
  }
  else
  {
        document.write ("<Body Background='Image2.gif'");

  }
//-->
</Script>

Cheers

Dave
0
 
LVL 19

Expert Comment

by:daveamour
ID: 2619654
And dont forget to put the > on like I did

document.write ("<Body Background='Image1.gif'>");

0
 
LVL 3

Accepted Solution

by:
Dassa earned 50 total points
ID: 2622656
Or :

<SCRIPT LANGUAGE="JavaScript">

// browser test:
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 4 ||
browserName ==
"Microsoft Internet Explorer" && browserVer >= 4)
version = "1";
else if (browserName == "Netscape" && browserVer >=
3)
version = "2";
else
version = "3";
if (version == "1") {
var correctwidth=800
var correctheight=600
if
(screen.width<correctwidth||screen.height<correctheig
ht)
location="PAGE_FOR_LOW_SIZE.htm"
else
location="PAGE_FOR_HIGH_SIZE.htm"
}
if (version == "2") {
var toolkit = java.awt.Toolkit.getDefaultToolkit();
var screen_size = toolkit.getScreenSize();
var correctwidth=800
var correctheight=600
if
(screen_size.width<correctwidth||screen_size.height<c
orrectheight)
location="PAGE_FOR_LOW_SIZE.htm"
else
location="PAGE_FOR_HIGH_SIZE.htm"
}
if (version == "3")
location="DEFAULT_PAGE.htm"
</SCRIPT>
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question