Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Using Iframe like this
Old 07-14-2007, 02:37 PM Using Iframe like this
Experienced Talker

Posts: 45
Name: Tonyo
Trades: 0
For my dads website (www.atriskstoriesofhope.com) I want to consolidate a few of the links into the about page (the bio page, media, etc.).

I'll try to explain it to the best of my ability. On the about page I want to have some links above the iframe like this

Mission|Bio|Media|Pictures|Reviews

How would I get these individual pages to load into the iframe below these links (for example, mission.html, bio, html, media.html), ie, whats the tag format?

Also, when someone first navigates to the about page, at first there will be a promotional video playing in the Iframe. Is it possible to play the video in this iframe. Is there any possibility that I can't use the iframe tag in this manner?
master_debator is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-14-2007, 04:05 PM Re: Using Iframe like this
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Frames are evil and I wouldn't suggest using them. You can use Server Side scripting to do this.
But that's not what you asked.
All you need to do is name the main frame (ie. name="mainframe"). Then in the links you will just add target="mainframe". so your links would look similar to this:
Code:
<a href="mission.html" target="mainframe">Mission</a>
I am pretty sure this is the right way. I am a little rusty with frames though.

You can play your video in the frame when someone opens the site. Again, this is not the best practice, but it can be done. What type of video is it? Flash??
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-14-2007, 04:31 PM Re: Using Iframe like this
Experienced Talker

Posts: 45
Name: Tonyo
Trades: 0
Quote:
Originally Posted by angele803 View Post
Frames are evil and I wouldn't suggest using them. You can use Server Side scripting to do this.
But that's not what you asked.
All you need to do is name the main frame (ie. name="mainframe"). Then in the links you will just add target="mainframe". so your links would look similar to this:
Code:
<a href="mission.html" target="mainframe">Mission</a>
I am pretty sure this is the right way. I am a little rusty with frames though.

You can play your video in the frame when someone opens the site. Again, this is not the best practice, but it can be done. What type of video is it? Flash??
I don't think its flash. It's some kind of streaming video. THe video can be seen at atriskstoriesofhope.com/stories.html

About the frame, would the format be like so

I think the html below is how it needs to be done to make the links appear as so.

Mission|Bio|Media|Images|Reviews

HTML Code:
[LEFT]<a href="mission.html" target="iframe1">Mission</a>|
<a href="Bio.html" target="iframe1">Bio</a>|[/LEFT]
 [LEFT]<a href="media.html" target="iframe1">Media</a>|
<a href="Images" target="iframe1">Images|</a>[/LEFT]
      [LEFT]<a href="Reviews" target="iframe1">Reviews|</a>[/LEFT]
 [LEFT]



[/LEFT]
 [LEFT]<iframe     name="iframe1" src="promodvd.htm" align="top" height="100" width="400" hspace="10" vspace="10">
If you can see this, your browser does not support iframes![/LEFT]
      </iframe>
master_debator is offline
Reply With Quote
View Public Profile
 
Old 07-14-2007, 04:33 PM Re: Using Iframe like this
Experienced Talker

Posts: 45
Name: Tonyo
Trades: 0
Quote:
Originally Posted by angele803 View Post
Frames are evil and I wouldn't suggest using them. You can use Server Side scripting to do this.
But that's not what you asked.
All you need to do is name the main frame (ie. name="mainframe"). Then in the links you will just add target="mainframe". so your links would look similar to this:
Code:
<a href="mission.html" target="mainframe">Mission</a>
I am pretty sure this is the right way. I am a little rusty with frames though.

You can play your video in the frame when someone opens the site. Again, this is not the best practice, but it can be done. What type of video is it? Flash??
I don't think its flash. It's some kind of streaming video. THe video can be seen at atriskstoriesofhope.com/stories.html

About the frame, would the format be like so

I think the html below is how it needs to be done to make the links appear as so.

Mission|Bio|Media|Images|Reviews

Code:
<a href="mission.html" target="iframe1">Mission</a>| <a href="Bio.html" target="iframe1">Bio</a>|
<a href="media.html" target="iframe1">Media</a>| <a href="Images" target="iframe1">Images|</a> <a href="Reviews" target="iframe1">Reviews|</a>
<iframe name="iframe1" src="promodvd.htm" align="top" height="100" width="400" hspace="10" vspace="10"> If you can see this, your browser does not support iframes!
</iframe>
master_debator is offline
Reply With Quote
View Public Profile
 
Old 07-14-2007, 05:06 PM Re: Using Iframe like this
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Yes, I believe that code should work.

And to get your video to work, just put this in your promodvd.htm file:
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" 
	width="319" 
	height="177" 
	align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="/cstream/cstream.swf?mediacvc=/rare/raredvd_1046.cvc">
	<param name="quality" value="high" />
	<param name="scale" value="noscale" />

	<param name="wmode" value="opaque" /> 
	<param name="menu" value="0" /> 
    <param name="salign" value="lt" />
	<param name="bgcolor" value="#000000" />
<embed src="/cstream/cstream.swf?mediacvc=/rare/raredvd_1046.cvc"
	quality="high" 
	scale="noscale" 
	bgcolor="#000000" 
	width="319" 
	height="177" 
	wmode="opaque"
	align="middle" 
	menu="0"
    salign="lt"
	allowscriptaccess="sameDomain" 
	type="application/x-shockwave-flash" 
	pluginspage="http://www.macromedia.com/go/getflashplayer" />    
</object>
It should automatically start playing


*edit* I just noticed that the size of the video is bigger than the size you declared for the iframe. You should be able to adjust the video size in the code, or you can change the size of your iframe.

Last edited by angele803; 07-14-2007 at 05:08 PM..
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using Iframe like this
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24804 seconds with 12 queries