Hi,
this script here displays a fading text message.
I would like to display 3 different messages, let's say "Fading text
1", "Fading text 2", "Fading text 3".
Also, is there a way to make it work under FireFox too?
Thank you very much for help
<SCRIPT LANGUAGE="JavaS cript1.2">
ie4 = ((navigator.app Version.indexOf ("MSIE")>0) &&
(parseInt(navig ator.appVersion ) >= 4));
var cnt = 0, cnt2 = 0, add1 = 3, add2 = 10, timerID;
function show() {
if (ie4) {
cnt += add1;
cnt2 += add2;
delay = 30;
if(cnt2 100) cnt2 = 100;
if(cnt 100) {
cnt = 100;
add1 = -10;
add2 = -3;
delay = 350;
}
if(cnt < 0) cnt = 0;
if(cnt2 < 0) {
cnt2 = 0;
add1 = 3;
add2 = 10;
delay = 200;
}
fader.style.fil ter = "Alpha(Opacity= "+cnt2+",Finish Opacity="+cnt
+",style=2)" ;
timerID = setTimeout("sho w()", delay);
}
}
window.onload = show;
</script>
</head>
<body bgcolor="#9B360 0">
<center<div id="fader" style="width:48 0;
Filter:Alpha(Op acity=0,FinishO pacity=0,style= 2)">
<h4<font family="Arial, Helvetica" color="#FFFFCC" >
FADING TEXT 1
<br><br></font></h4</div</center>
</body>
</html> 2 1850
On Tue, 04 Mar 2008 19:52:58 +0000, Jeremy J Starcher wrote:
* * *
How to improve the script and make it fail gracefully:
My first idea would be quick and dirty. Put all of the text into the
DIVs or the SPANs so it is available, then use Javascript to 'extract
them' and fade them back in. Perhaps conditionally inline a style sheet
to set the DIV's to "hidden" when JS is available.
Change the array to a list of divs to extract the strings from and re-
fade in.
Figures I would remember something important after I posted.
In addition, pre-check the fade methods. If the message can't be faded
back in, don't get rid of it in the first place. That will handle
browsers that either don't support opacity or are not handled by your
code. (IIRC, Konqueror has its own way of setting opacity, but I don't
have that here at the moment.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ahmad |
last post by:
Hi all,
Is it possible to add a fading-in effect to the
start of a java program. So when the program is started,
it fads-in instead of pop-out.
any help is appreciated,
thanx
|
by: Yuk Cheng |
last post by:
<<<start index.htm>>>
<html>
<head>
<script>
function perform(action){
}
</script>
</head>
|
by: hypnotizes |
last post by:
Has anyone seen the nice fading effect that involves one page, doing a
fading transistion into another when you click on the link? Im trying
to find the code for this effect. Any help!?
An example of this that Ive found was at the following site:
http://www.sensationalstaycee.com/welcome.htm
Just click on any of the sections, and you will see how one page fades
into another.
|
by: zelnugget |
last post by:
I'm using a fading image script that I found via Google Groups on this
newsgroup, and am having some difficulty with it. First, here's a link
to the Google Groups posting:
http://groups-beta.google.com/group/comp.lang.javascript/msg/3f287a2f20de1b10
I've modified the page linked to in the above URL by making one of the
images an input element whose type is an image and am now encountering
flickering problems. Here's the webpage:
|
by: marfi95 |
last post by:
Hi all.
I have some forms that use the opacity property to fade in/out. I'd
like to do the same kind of thing with a richtextbox on one of my
forms. Doesn't look like opacity is exposed on the rtb control, so I
was wondering if anyone had done this before.
I'm looking for the effect of fading in at a specific point in the form
(when a timer ticks actually). I also don't mind some effect like the
size of the control starting smaller...
| |
by: Rich Sagall |
last post by:
I am just learning Javascript and looking for some help with having a
series of quotes that will fade in and out of the website.
Thanks,
Rich
|
by: lolixpop |
last post by:
Hi everybody thanks for reading! i have a few actionscript questions that i really need help on...any help would be greatly appreciated! Okay so i came upon this tutorial: http://www.kirupa.com/developer/mx/fadegrid2.htm It looks awesome! I absolutly love it but i'm not quite sure how to apply it to my banner. My banner consists of 3 movie clips that moves...like instead of a still image like the one shown on the tutorial there are several text...
|
by: =?Utf-8?B?ZHNoZW1lc2g=?= |
last post by:
Hello,
I have a windows form in a project that was written long ago.
I noticed that all images in this form have a width of 1 pixel, but they are
streched over all the form (from left to right). When they are streched the
right hand of the images is fading. I would like it not to fade.
Any ideas of how to do this?
thanks,
--
dshemesh
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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: 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...
| |