I have this little code wich is working quite good, it makes a slide
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0
}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()"> 4 2287
On 4ÔÂ28ÈÕ, ÉÏÎç4ʱ00·Ö, tetris <tetri...@gmail .com>wrote:
I have this little code wich is working quite good, it makes a slide
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()">
You can use the JQuery. There are already some method to make
animation in JQuery.
On 28 avr, 03:41, None <jdxyw2...@gmai l.comwrote:
On 4ÔÂ28ÈÕ, ÉÏÎç4ʱ00·Ö, tetris <tetri...@gmail .comwrote:
I have this little code wich is working quite good, it makes a slide
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()">
You can use the JQuery. There are already some method to make
animation in JQuery.
i dont want to use frameworks
On Apr 28, 3:40 pm, tetris <tetri...@gmail .comwrote:
On 28 avr, 03:41, None <jdxyw2...@gmai l.comwrote:
On 4ÔÂ28ÈÕ, ÉÏÎç4ʱ00·Ö, tetris <tetri...@gmail .comwrote:
I have this little code wich is working quite good, it makes a slide
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()">
You can use the JQuery. There are already some method to make
animation in JQuery.
i dont want to use frameworks
It is normally done using setTimeout or setInterval to step through
various levels of opacity with a pause of say 50ms between steps -
increasing one image while decreasing the other. Search the archives
for "fade opacity".
You might like to look at this post in another group by Peter
Michaux :
<URL: http://groups.google.com/group/forkj...478a40367d215#
>
There was also a thread there on opacity performance - it's a little
old now but likely much of it still applies. It also suggests
strategies for ensuring the fade works well in different browsers and
slower platforms.
--
Rob
On 28 avr, 08:45, RobG <rg...@iinet.ne t.auwrote:
On Apr 28, 3:40 pm, tetris <tetri...@gmail .comwrote:
On 28 avr, 03:41, None <jdxyw2...@gmai l.comwrote:
On 4ÔÂ28ÈÕ, ÉÏÎç4ʱ00·Ö, tetris <tetri...@gmail .comwrote:
I have this little code wich is working quite good, it makes a slide
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()">
You can use the JQuery. There are already some method to make
animation in JQuery.
i dont want to use frameworks
It is normally done using setTimeout or setInterval to step through
various levels of opacity with a pause of say 50ms between steps -
increasing one image while decreasing the other. Search the archives
for "fade opacity".
You might like to look at this post in another group by Peter
Michaux :
<URL:http://groups.google.com/group/forkj...m/thread/05d47....
There was also a thread there on opacity performance - it's a little
old now but likely much of it still applies. It also suggests
strategies for ensuring the fade works well in different browsers and
slower platforms.
--
Rob- Masquer le texte des messages pr¨¦c¨¦dents -
- Afficher le texte des messages pr¨¦c¨¦dents -
thanks for your reply, i have found the effect but they are generally
implemented over a div on the document, i've been trying to tweak it
to get to the body.background of the document, will keep on trying.. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: erik |
last post by:
Is it posssible to inherit the previous pages (parent pages)
background image? Is there a script out there I could look at? Thanks
|
by: Markus Mohr |
last post by:
Hi, everyone,
I have a special problem:
For every monitor resolution in 200 pixel steps from 800 to 1600
pixels I have an image to be shown as centered background-image.
Those images all have the same name and reside in the following
physical path structure:
|
by: Kevin Yu |
last post by:
When I declare on HTML page
<LINK href="mycss.css" type="text/css" rel=stylesheet />
....
<BODY class=myclass>
in mycss.css
BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY: Arial, Geneva; background-image: url(images/back.jpg); }
|
by: Giggle Girl |
last post by:
Hi there,
I need to use a background image in a TR that does NOT restart
everytime it hits a TD. Can it be done?
Specifically, if you set a background image for an entier table, now
mater how many TRs and TDs you have, it will show the
complete/unfragmented image (as long as you don't over-ride it).
When I set a TR background image, every time I hit a TD it "re-seeds"
the image. I want to have a TR that shows an 800px image in it's
|
by: Nilesh |
last post by:
I am using background-image attribute in a CSS file and linking the
CSS file to aspx page. But strangly, background-image attribute is not
working for relative URL.
e.g. If I apply following css
..navbar-background {
background-image: url(images/menubar.gif);
}
the image is not appearing on the page. It seems that IE is picking
| |
by: Viken Karaguesian |
last post by:
Hello all,
I need somehelp with background tiling. I have a sneaking suspicion that
what I want to do is not possible, but I'll ask anyway. :>) First some
background: Here's the site in question: www.sayatnova.com (I'm sure many of
you have seen this before as I've often asked for help).
I've come a long way since I first created the site many moons ago and I'm
trying to convert it to a (1) Table-less, (2) Frame-less and (3) Validated...
|
by: Patrick |
last post by:
Hi All,
I am trying more and more to incorporate CSS into my work here. I have
currently been playing around with fluid design and tableless layout.
Currently I am trying to make a background image show up in a div that
is designated by an id. The image is not appearing and after doing some
googling I'm still a bit lost. Is it possible to display a background
image in a div ID? Can someone school me a bit on this? I have supplied
a...
|
by: Rob |
last post by:
Hello,
I'm sure this has come up before. I have need for a collection of all
elements/objects in an HTML document that have any kind of an
attribute (HTML or CSS) that is making use of a URL to display an
image. document.images only seems to reference image tags. The
collection needs to include background images, input type = image,
image maps, css assigned background, etc. Honestly, I am probably not
aware of all the possibilities...
|
by: stevedude |
last post by:
CSS newbie again. I have a problem trying to get coffee mug images
within anchor tags to center with my link text for a vertical list
menu. If I use the horizontal/vertical properties of "background" or
"background-image", the positioning only works with specifying
pixels.
If I specify the vertical position in pixels, the image gets cut-off
at the bottom. I don't know what to do and would appreciate anyone's
help. Specifically the code...
|
by: thephatp |
last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE.
I have created a sample page, and I'm really confused as to what is going on in IE. FF renders the page exactly as I expect. IE renders the page with everything in the correct location, but it seems to double the background image for a sub-div section that is moved up using a negative...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |