Hi,
I would like my text to fade from CALL US ON to 01473 777777.How do i get it to do this?
Thanks for your help guys
x
First download the
script here and save it into your site folder.
https://communities.cisco.com/docs/DOC-25226
Then copy the code below and save it into your site folder:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#ptag1, #ptag2 {
font-size: 45px;
text-align: center;
width: 400px;
margin: 0 auto;
padding: 100px 0 0 0;
}
</style>
<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
setTimeFor2Hide();
});
function setTimeFor1Hide() {
setTimeout("$('#ptag1').fadeIn(500)", 1200);
setTimeout("$('#ptag2').fadeOut(500)", 700);
setTimeout("setTimeFor2Hide();", 2000);
}
function setTimeFor2Hide() {
setTimeout("$('#ptag1').fadeOut(500)", 700);
setTimeout("$('#ptag2').fadeIn(500)", 1200);
setTimeout("setTimeFor1Hide();", 3000);
}
</script>
</head>
<body>
<p id="ptag1">CALL US ON</p>
<p id="ptag2" style="display:none;">XXXXX XXXXXX</p>
</body>
</html>
Until Adobe finally fixes all the forum problems, please don't use a lot of tags in your posts. Tags cause the question in your main post to disappear.
I don't know what you mean by fading text. Can you post an example of what you're trying to achieve?
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
North America
Europe, Middle East and Africa
Asia Pacific