Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 09-21-2009, 10:26 PM   #1
Work hard to play hard
War Room Member
 
Join Date: Aug 2007
Location: Michigan, USA.
Posts: 1,150
Thanks: 99
Thanked 184 Times in 124 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to MarkR Send a message via Skype™ to MarkR
Default Time delay on an iframe-based audio player?

Hi,

I have just put an iframe into my sales page that plays an audio clip. Don't ask why I'm using an iframe -- that's what the software needs. It works great.

Is there a way to delay the automatic playing of the clip by say 15 seconds or so? That feature is not built into the web-based audio player I'm using. Here's the code...

<p><iframe src='http://www.audioplayersite.com/ap.php?url=http://www.mysite.com/audio.mp3&audiotitle=titlehere&autoplay=yes' width='250' height='35' align='middle' scrolling='no' frameborder='0'></iframe></p>

MarkR is offline   Reply With Quote
Old 09-21-2009, 10:33 PM   #2
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Time delay on an iframe-based audio player?

Hi Mark

Not sure if this will work for you, but I was thinking that you could first load a page into your iFrame that has a time-delayed redirect set for 15 seconds. Your initial page would display for 15 seconds and then redirect to your player page.

A way to create this redirect with JavaScript is detailed here:

Javascript Tutorial - Redirect

Hope this helps!

Bill
mywebwork is offline   Reply With Quote
Old 09-22-2009, 12:01 PM   #3
Work hard to play hard
War Room Member
 
Join Date: Aug 2007
Location: Michigan, USA.
Posts: 1,150
Thanks: 99
Thanked 184 Times in 124 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via AIM to MarkR Send a message via Skype™ to MarkR
Default Re: Time delay on an iframe-based audio player?

Bill,

Thanks. Sounds plausible. But, I'm not sure I know how to do that. I can't edit the web page that plays the audio as it's on another site I don't own.

MarkR is offline   Reply With Quote
Old 09-22-2009, 12:53 PM   #4
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Time delay on an iframe-based audio player?

Hi Mark

You don't need to be able to edit the audio page, that's the page you would redirect to after displaying your "temporary" page for 15 seconds. Your new "temporary" page and your main page with the iFrame are all you need to edit.

The sequence is as follows:

1 - Build your "temporary" page to display some text that you want users to see before the audio begins. Include the JavaScript to redirect to your (external) audio page after a 15 second delay.

2 - Edit the code you provided earlier, set your frame source to be the new page you just made.

3 - That's it! Visitors to your site will now see your "temporary" page in the iFrame for 15 seconds. After that the iFrame contents will be your audio program.

Hope that makes sense, PM me if you need any help with this..

Bill
mywebwork is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
audio, delay, iframebased, player, time

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:54 AM.