Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-18-2011, 09:22 AM   PM User | #1
henkroos
New to the CF scene

 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
henkroos is an unknown quantity at this point
Problems with proportions of images

I have a page on my website that shows images fullscreen. But it messes up the proportions of all the images. How can I prevent that from happening.

The webpage can be viewed at http://www.henkroos.nl/nieuw/index.php
The code i use is:

<SCRIPT LANGUAGE="JavaScript">
<!--

//set image paths
src = ["plaatjes/001.jpg", "plaatjes/002.jpg", "plaatjes/003.jpg", "plaatjes/004.jpg", "plaatjes/005.jpg", "plaatjes/006.jpg",
"plaatjes/007.jpg", "plaatjes/008.jpg", "plaatjes/009.jpg", "plaatjes/010.jpg", "plaatjes/011.jpg", "plaatjes/012.jpg",
"plaatjes/013.jpg", "plaatjes/014.jpg", "plaatjes/015.jpg", "plaatjes/016.jpg", "plaatjes/017.jpg", "plaatjes/018.jpg",
"plaatjes/019.jpg", "plaatjes/020.jpg"]

//set duration for each image
duration = 4;

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Ad_Image"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
function doLink(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}
//-->
</SCRIPT>

Can anyone please help me?
henkroos is offline   Reply With Quote
Old 02-18-2011, 09:30 AM   PM User | #2
henkroos
New to the CF scene

 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
henkroos is an unknown quantity at this point
[QUOTE=allen1983;1055406]I only buy what food i need for that day .

Was that humor? If so, i really didn't get the clue. Maybe someone else can help me with my problem? Someone who's not Tommy Cooper!!

Gr. Henk
henkroos is offline   Reply With Quote
Old 02-18-2011, 07:20 PM   PM User | #3
Jimather
New Coder

 
Join Date: Jan 2011
Posts: 66
Thanks: 10
Thanked 5 Times in 5 Posts
Jimather is an unknown quantity at this point
have a look at this page: http://css-tricks.com/perfect-full-p...kground-image/
Jimather is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:44 PM.


Advertisement
Log in to turn off these ads.