By Meta tag
<meta http-equiv="refresh" content="600">
By Javascript
<a href="javascript:location.reload(true)">Refresh this page</a>
Click here to Refresh this page
@font-face {
font-family: OCR;
src: url(../fonts/OCR A Extended.ttf); /* For IE */
src: url(../fonts/OCR A Extended.ttf) format("opentype");
/* For non-IE */
}<action method="addCss"><stylesheet> css/Yourcss.css </stylesheet> </action>
<script type="text/javascript" src="<?php echo $this->getSkinUrl('js/yourjs.js')?>"></script>
and upload/paste your js into Skin/frontend/default/default/js Folder.To use Css Class in an HTML Tag we can use a Jquery function addClass(). This function add a css class into your HTML tag.The most intresting things is that you can use this class on a eventhandler also, To get effects when a client/user response on it.
This is an example to add a css class into a Html Tag
<script type="text/javascript">
$(document).ready(function(){
$('.click').click(function(){
$('p').addClass('green');
});
});
</script>
<style type="text/css">
.green{ color:green;}
</style>
Jquery is a Library fucntion of Javascript.It's very easy to write and very much faster than Javascript. When we use onLoad event handler on body tag ,the onload function will fired when all body content will download successfully ,that means all the image should download completely,then only this event will fired.But in Jquery when your Html DOM(Document Object Model) will load completely than the Jquery function can be fired,it's no need to wait for downloading any Image.That is why it is very nuch popular than other language/script.
For example I am going to give red color into all h1 tag When this page will loaded. For that i will write
<script type="text/javascript">
$(document).ready(function(){
$('h1').css('color','red');
});
</script>
Before Run this script You need to link JQUERY Library into your page which you can get from these linkshttp://code.jquery.com/jquery-1.4.2.min.js
or you can use this onehttp://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
Attach any one of this script then You can see the effect only