Solved

Fading Text Control

Posted on 2008-10-30
16
291 Views
Last Modified: 2009-02-12
I'm looking for a simple way to perform text transitions.

Like

"Hello Welcome" fades to background color.
"Fading is simple" fades up from background color

Any ideas ?
0
Comment
Question by:OhNowISee
  • 9
  • 3
  • 2
  • +1
16 Comments
 
LVL 8

Expert Comment

by:rpkhare
ID: 22841603
I see that you are using Visual Web Developer 2008. Why not experiment this using Silverlight? Have a look at these links:

http://www.codeproject.com/KB/silverlight/AgDynAnimations.aspx
http://www.primaryobjects.com/CMS/Article71.aspx
0
 
LVL 8

Expert Comment

by:rpkhare
ID: 22841637
If you want to do without using Silverlight, then:
http://www.codeproject.com/KB/scripting/jsfadetext.aspx
0
 
LVL 2

Expert Comment

by:smokingspaceman
ID: 22841748
There are so many ways you can do this.
A really easy way to do this along with so many other effects is to use a javascript library like mootools.
http://demos.mootools.net/Effects#

You download the mootools.js file and create a reference to it in your HTML.

and then in the <head> section of your document put this javascript code
(assuming
1.you have two spans (span1, span2)  positioned on top of each other with the text "hello welcome" and "Fading is simple" respectively.
2.background color is black and initial font color is white)

<script type="text/javascript">
window.addEvent('onload', function() {
       
        //span1
        var myEffect = new Fx.Tween(span1);
	// We change the font-color of the element
	myEffect.start('color', '#000');
 
        //span2
        var myEffect = new Fx.Tween(span2);
	// We change the font-color of the element
	myEffect.start('color', '#fff');
 
});
</script>

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:OhNowISee
ID: 22842404
I'm using express.

Is that a problem ?
0
 

Author Comment

by:OhNowISee
ID: 22842506
And not c# !
0
 

Author Comment

by:OhNowISee
ID: 22842929
The moo stuff looks good.  Is it free ?

How do I 'create a reference' ?

Can it be used to run continuously ? (A bit like an AdRotator but just fading from one line of text to another)?

0
 
LVL 2

Expert Comment

by:smokingspaceman
ID: 22847290
Yes its free and distributed on MIT license as far as i remember.
This is how you create a reference to an external javascript document in your HTML.
<script type="text/javascript" src="mootools.js"></script>

Well you can't run the script i gave you to make it run continuously. Instead you can use something like this.
http://smoothgallery.jondesign.net/
0
 

Author Comment

by:OhNowISee
ID: 22848341
Hmm now it seems to be getting compilicated !

Is there a webcontrol that will do what I want ?
0
 
LVL 2

Expert Comment

by:smokingspaceman
ID: 22848446
This is not free but will suit your needs.
http://www.telerik.com/products/aspnet-ajax/controls/rotator/overview.aspx

If not you can always look at silverlight.
0
 

Author Comment

by:OhNowISee
ID: 22848684
I've seen a demo for the AJAX Animation extender that looks promising but the code is v2 and I have asp.net 3.5.

Could someone write me a code block ?
Can't find any resources on amination setup.
0
 

Author Comment

by:OhNowISee
ID: 22887726
Hellllllllllllllllllllllllllp !
0
 

Author Comment

by:OhNowISee
ID: 22897616
Ahhh (pulls more hair out) !

Can anyone give me a page with SilverLightMooJavaWhatEver that can solve my problem ?

Maybe I can get away without continuous cycling.  Is there a way to set the fade speed in Moo?
0
 

Author Comment

by:OhNowISee
ID: 22917122
OK back to SmokingSpaceMan !

How do I place spans on top of each other ?

Can you rustle me up a demo page ?

0
 

Author Comment

by:OhNowISee
ID: 22930069
Finally I used JavaScript from this site

http://www.greywyvern.com/code/js/fade
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 23629408
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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