Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- version="1.0"
- onload="init(evt)"> // <-- start function after load
- // http://apike.ca/prog_svg_jsanim.html
- // http://www.w3schools.com/jsref/met_loc_reload.asp
- // http://stackoverflow.com/questions/5294842/refresh-a-page-using-javascript-or-html
- <circle cx="50%" cy="25%" r="40" fill="green"/>
- <script type="text/ecmascript"><![CDATA[
- function init(evt){
- setTimeout(function(){ // <-- timer start function with delay
- location.href='http://www.onet.pl'; // <-- load new page
- //location.reload(1); // <-- reload current page. `1` means "load from server instead of cache"
- }, 3000); // <-- delay 3000ms = 3s
- }
- ]]></script>
- </svg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement