Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-30-2006, 06:57 PM   PM User | #1
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
Video in iframe

Ok, im juggling learning a few different language at once (i know html, and css, but i am learning c++, php, mysql, and javascript) so progress is slow. Anyway what id like to do is create a section of my site which allows people to watch different videos, in the same page by clicking an image of the video, and having it launch in the same page, just right of the images.

I understand that it must be annoying having noobies ask for help, but i would appreciate your help, as i am a long way of learning how to do this on my own.

Thanks

Ciggy
haveacigar is offline   Reply With Quote
Old 08-30-2006, 07:20 PM   PM User | #2
Scriptbanger
New Coder

 
Join Date: Aug 2006
Location: Idaho
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Scriptbanger is an unknown quantity at this point
Basic HTML link with a target attribute.
Code:
<a href="videofilename" target="iframename">Text or image here.</a>
__________________
.
+ Christ is the Rock - Rock On!
Scriptbanger is offline   Reply With Quote
Old 08-30-2006, 07:26 PM   PM User | #3
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
Hi
Thanks for the reply, although i have tried that and just get the link to open in a different window. There could be a problem with the code...

Code:
	<div id="left">
	   <p>
	  <a href="http://www.google.co.uk" target="iframe">google</a>
</div>
	
	
<div id="right">
  <iframe id="iframe"  frameborder="0" align="middle"> your browser doesnt support frames</iframe>
</div>
can you see a problem?

Cheers

Ciggy
haveacigar is offline   Reply With Quote
Old 08-30-2006, 07:45 PM   PM User | #4
Scriptbanger
New Coder

 
Join Date: Aug 2006
Location: Idaho
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Scriptbanger is an unknown quantity at this point
Code:
<a href="http://www.google.co.uk" target="iframe">google</a>
<iframe name="iframe" id="iframe" frameborder="0" align="middle"> your browser doesnt support frames</iframe>
__________________
.
+ Christ is the Rock - Rock On!
Scriptbanger is offline   Reply With Quote
Old 08-31-2006, 02:23 PM   PM User | #5
haveacigar
New Coder

 
Join Date: Aug 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
haveacigar is an unknown quantity at this point
Quote:
Originally Posted by Scriptbanger
Code:
<a href="http://www.google.co.uk" target="iframe">google</a>
<iframe name="iframe" id="iframe" frameborder="0" align="middle"> your browser doesnt support frames</iframe>
awesome. It works great, cheers for your help, i shall be visiting your forum frequently
haveacigar is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:53 PM.


Advertisement
Log in to turn off these ads.