ViserExcizer
04-29-2009, 08:37 AM
1) Script Title:
WinXP Progess Bar
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm
3) Describe problem:
I need to make the redirectpage() funtion in this script to load only when a link is clicked, and not load when the page loads. The way this script works is
the ' var bar3 ' starts loading when the page is loaded,
I need to make it such that I have
<a href="http://yahoo.com" onclick="redirectpage()" >
<a href="http://google.com" onclick="redirectpage()" >
<a href="http://dynamicdrive.com" onclick="redirectpage()" >
which, when clicked, will show the bar loading for a number of times, and after that, forwards to the given url in the href=''
this is the code on the ddrive page that i dont know how to work with.
<script type="text/javascript">
function redirectpage(){
bar3.togglePause()
window.location="http://www.javascriptkit.com"
}
var bar3= createBar(320,15,'white',1,'black','red',85,7,5,"redirectpage()");
</script>
Im sorry, im new to javascript, and this is beyond my skills right now. Any help will be greatly appreciated.
WinXP Progess Bar
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm
3) Describe problem:
I need to make the redirectpage() funtion in this script to load only when a link is clicked, and not load when the page loads. The way this script works is
the ' var bar3 ' starts loading when the page is loaded,
I need to make it such that I have
<a href="http://yahoo.com" onclick="redirectpage()" >
<a href="http://google.com" onclick="redirectpage()" >
<a href="http://dynamicdrive.com" onclick="redirectpage()" >
which, when clicked, will show the bar loading for a number of times, and after that, forwards to the given url in the href=''
this is the code on the ddrive page that i dont know how to work with.
<script type="text/javascript">
function redirectpage(){
bar3.togglePause()
window.location="http://www.javascriptkit.com"
}
var bar3= createBar(320,15,'white',1,'black','red',85,7,5,"redirectpage()");
</script>
Im sorry, im new to javascript, and this is beyond my skills right now. Any help will be greatly appreciated.