Sep 16, 2016
Flash Text With JQuery
FLASH NEWS
In this post we are going to do text flashing with JQUERY .With the help of toggle class and CSS we can flash the text.Change the text colour with the help of css as shown below.
JQuery Code
div {
display:block;
width:100%;
height:35px;
line-height:35px;
padding-left:10px;
background:#eeeccc;
font-weight:bold;
color: red; }
div.blink { color: blue; }
<br /></div>
HTML Code
var bl = $('div');
setInterval(function() {
bl.toggleClass('blink');
}, 500);
See the Demo Here
<div>FLASH NEWS</div>
What is PHP ?
PHP is a server scripting language well known as Hypertext Preprocessor, a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
A Sample php web page is shown as below.
<!DOCTYPE HTML>
<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php
echo "Hi, I am from your PHP script!";
?>
</body>
</html>
In the above code you can see the script which is embedded in HTML code.The PHP Code is placed between start and end tags , whis is entry and exit of PHP Code.