Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
shmk
Worker
Worker


Joined: Dec 21, 2004
Posts: 116

PostPosted: Mon Mar 20, 2006 2:46 pm Reply with quote

I have blocks with ads in form of:
Code:
<scr ipt language="JabbaScript">

document.wr ite('<s'+'cript language="JabbaScript" src="URL"></s'+'cript>');
</scr ipt>


Is it possible to set a timeout that after X seconds the block stop to load ?
Because sometime the banner is loading quite slow and the site load time is affected by this.
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Mon Mar 20, 2006 5:20 pm Reply with quote

That's a great question... I would try something in javas cript itself?

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
shmk
PostPosted: Tue Mar 21, 2006 2:31 pm Reply with quote

kguske wrote:
That's a great question...


So I need a great answer Razz

Someone has it ? Confused
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Mar 21, 2006 8:26 pm Reply with quote

Hmm it probably wouldn't be something you could do with JavaScript - we don't know how the banners are being generated from the script

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Wed Mar 22, 2006 5:44 am Reply with quote

I wonder if you could use Javascript to control an Iframe? Or, at least this way, I wonder if the rest of the site would load while the one page in the Iframe continues to "chug"....

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
shmk
PostPosted: Wed Apr 12, 2006 3:00 am Reply with quote

Because I have ads on blocks (left & right), isn't possible insert a timeout directly in the phpnuke block loading time ?
 
montego
PostPosted: Wed Apr 12, 2006 5:29 am Reply with quote

shmk, unfortunately, all of the above still applies. Having ad blocks really doesn't imply some form of "loading time" exists. It just so happens that those hosting ad company websites do not experience problems very often.
 
shmk
PostPosted: Wed Apr 12, 2006 8:02 am Reply with quote

I'm trying the "iframe way", but because I don't know jscript I still have a problem:
in my ads blocks I have:
document.write('
above my ads (and the ads is displayed normal), my script is:

Code:
<scrixt language="JabbaScript">

dokument.write('<eframe width=XXX height=XXX marginwidth=0 marginheight=0
frameborder=0 scrolling=no
src="URL'+newDate().getTime()+'"></eframe>');
</scrixt>
 
shmk
PostPosted: Wed Apr 12, 2006 1:30 pm Reply with quote

I used the "long way" and finally found the solution.
Insert the scripts in a html file and next, in my ads block, I simply call an iframe with src=html
 
montego
PostPosted: Fri Apr 14, 2006 10:40 am Reply with quote

Excellent news!

Sorry, missed your reply... was extremely busy the last two days.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©