homepage Welcome to WebmasterWorld Guest from 54.196.69.56
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Help me check the script! Thank you!
uronstone




msg:4563334
 3:59 am on Apr 10, 2013 (gmt 0)

Why the script can't demonstrate its effect on the webhosting while it can on local pc.

<script>
$(document).ready(function() {var _0x4828=["\x73\x6C\x6F\x77","\x72\x65\x6D\x6F\x76\x65","\x2E\x70\x72\x65\x41\x44","\x66\x61\x64\x65\x49\x6E","\x23\x53\x48\x4F\x57","\x66\x61\x64\x65\x4F\x75\x74","\x68\x74\x6D\x6C","\x23\x73\x65\x63\x6F\x6E\x64\x73","\x66\x61\x73\x74"];function endCountdown(){$(_0x4828[2])[_0x4828[5]](_0x4828[0],function (){$(_0x4828[2])[_0x4828[1]]();$(_0x4828[4])[_0x4828[3]](_0x4828[0]);} );} ;function handleTimer(){if(count===0){clearInterval(timer);endCountdown();} else {$(_0x4828[7])[_0x4828[6]](count);count--;$(_0x4828[4])[_0x4828[5]](_0x4828[8]);} ;} ;
var timer=setInterval(function (){handleTimer(count);} ,1000);
var count = '10';
});
</script>


<div class="preAD" style="padding: 70px 0 0 0; margin: 0 auto; width:338px;">
<div style="float:left; width:336px; height: 280px; border: 1px solid #000000; text-align:center; background-color: #ffffff;"></div>
<img style="margin: 10px 0 5px 5px; border:0;" src="templatelayout/images/loading.gif" alt="" />
<p style="font: 12px arial; color: #ffffff; padding: 0px 0 0 0; text-align:center; margin:10px 0 0 0;">Please wait <span id="seconds"></span> Seconds to load the game<br /></p>
</div>

<div id="SHOW">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../../../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="650" height="650" id="nxGame" ><param name="movie" value="flash/1.swf"><param name="quality" value="high"><param name="menu" value="true"><embed width="650" height="650" src="flash/1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object></div>

 

phranque




msg:4563364
 5:44 am on Apr 10, 2013 (gmt 0)

welcome to WebmasterWorld, uronstone!


try using absolute urls (starting with http://) instead of relative urls.

you might also try something like the Live HTTP Headers add-on for firefox to see what HTTP Requests are being made for that page and what the localhost vs webhosting HTTP Responses are.

uronstone




msg:4563700
 3:24 am on Apr 11, 2013 (gmt 0)

Thank you phranque. The problem is solved.

phranque




msg:4565043
 10:18 pm on Apr 15, 2013 (gmt 0)

how did you solve your problem?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved