Witam,
Chciałbym, aby przed grą, była wyświetlana reklama.
Proszę zobaczyć stronę:
http://www.gierki-online.xorg.pl/minigra614
Chciałbym, aby przed tą grą wyświetlała się reklama (np. do czasu, aż nie załaduje się gra), bądź (te rozwiązanie wydaje mi się łatwiejsze) aby reklama była wyświetlana przez 3 sekundy, a potem była wyświetlana gra.

W jaki sposób mogę to zrobić?
EDIT:
znalazłem coś takiego:
  1. <head>
  2. <script type="text/javascript">
  3. // xp_progressbar
  4. // Copyright 2004 Brian Gosselin of ScriptAsylum.com
  5. //
  6. // v1.0 - Initial release
  7. // v1.1 - Added ability to pause the scrolling action (requires you to assign
  8. // the bar to a unique arbitrary variable).
  9. // - Added ability to specify an action to perform after a x amount of
  10. // - bar scrolls. This requires two added arguments.
  11. // v1.2 - Added ability to hide/show each bar (requires you to assign the bar
  12. // to a unique arbitrary variable).
  13.  
  14. // var xyz = createBar(
  15. // total_width,
  16. // total_height,
  17. // background_color,
  18. // border_width,
  19. // border_color,
  20. // block_color,
  21. // scroll_speed,
  22. // block_count,
  23. // scroll_count,
  24. // action_to_perform_after_scrolled_n_times
  25. // )
  26.  
  27. var w3c=(document.getElementById)?true:false;
  28. var ie=(document.all)?true:false;
  29. var N=-1;
  30.  
  31. function createBar(w,h,bgc,brdW,brdC,blkC,speed,blocks,count,action){
  32. if(ie||w3c){
  33. var t='<div id="_xpbar'+(++N)+'" style="visibility:visible; position:relative; overflow:hidden; width:'+w+'px; height:'+h+'px; background-color:'+bgc+'; border-color:'+brdC+'; border-width:'+brdW+'px; border-style:solid; font-size:1px;">';
  34. t+='<span id="blocks'+N+'" style="left:-'+(h*2+1)+'px; position:absolute; font-size:1px">';
  35. for(i=0;i<blocks;i++){
  36. t+='<span style="background-color:'+blkC+'; left:-'+((h*i)+i)+'px; font-size:1px; position:absolute; width:'+h+'px; height:'+h+'px; '
  37. t+=(ie)?'filter:alpha(opacity='+(100-i*(100/blocks))+')':'-Moz-opacity:'+((100-i*(100/blocks))/100);
  38. t+='"></span>';
  39. }
  40. t+='</span></div>';
  41. document.write(t);
  42. var bA=(ie)?document.all['blocks'+N]:document.getElementById('blocks'+N);
  43. bA.bar=(ie)?document.all['_xpbar'+N]:document.getElementById('_xpbar'+N);
  44. bA.blocks=blocks;
  45. bA.N=N;
  46. bA.w=w;
  47. bA.h=h;
  48. bA.speed=speed;
  49. bA.ctr=0;
  50. bA.count=count;
  51. bA.action=action;
  52. bA.togglePause=togglePause;
  53. bA.showBar=function(){
  54. this.bar.style.visibility="visible";
  55. }
  56. bA.hideBar=function(){
  57. this.bar.style.visibility="hidden";
  58. }
  59. bA.tid=setInterval('startBar('+N+')',speed);
  60. return bA;
  61. }}
  62.  
  63. function startBar(bn){
  64. var t=(ie)?document.all['blocks'+bn]:document.getElementById('blocks'+bn);
  65. if(parseInt(t.style.left)+t.h+1-(t.blocks*t.h+t.blocks)>t.w){
  66. t.style.left=-(t.h*2+1)+'px';
  67. t.ctr++;
  68. if(t.ctr>=t.count){
  69. eval(t.action);
  70. t.ctr=0;
  71. }}else t.style.left=(parseInt(t.style.left)+t.h+1)+'px';
  72. }
  73.  
  74. function togglePause(){
  75. if(this.tid==0){
  76. this.tid=setInterval('startBar('+this.N+')',this.speed);
  77. }else{
  78. clearInterval(this.tid);
  79. this.tid=0;
  80. }}
  81.  
  82. function togglePause(){
  83. if(this.tid==0){
  84. this.tid=setInterval('startBar('+this.N+')',this.speed);
  85. }else{
  86. clearInterval(this.tid);
  87. this.tid=0;
  88. }}
  89.  
  90. </head>
  91.  
  92. <body>
  93. <form action='http://www.google.pl' method='post' id='form1'>
  94.  
  95. </form><BR><BR>
  96. <h2>LOADING</h2>
  97. <script type="text/javascript">
  98.  
  99. function redirectpage(){
  100. //bar3.togglePause();
  101. document.forms['form1'].submit();
  102. //changeSpeed(40);
  103. }
  104.  
  105. var bar3= createBar(460,20,'white',1,'black','green',100,10,2,"redirectpage()");
  106. </body></html>

Tylko gdy skończy się ładowanie, to przekierowuje na google.pl
A ja chciałbym wstawić tam objekt swf
Kod
<object type="application/x-shockwave-flash" data="chevypage.swf" width="390" height="118">
<param name="movie" value="chevypage.swf" />   </object>

W jaki sposób to zrobić?
Nie chcę, aby przechodził na stronę google.pl tylko aby zaczął wyświetlać ten obiekt swf