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
Talkupation for best answer - using frames
Old 08-28-2007, 02:45 PM Talkupation for best answer - using frames
Defies a Status

Posts: 3,420
Trades: 0
I want to include frames on my site which include tutorials on cPanel.net

I will include these on a web address like whymwebhosting.co.uk/cpanel-tutorials (currently doesn't exist but I'll change that soon).

I've checked with cPanel and they say as long as I'm not copying their material, then its fine - the address of their tutorials is:

http://www.cpanel.net/products/cPane...tutorials.html

Can someone give me the code for the frame I need to do this? I've checked on several sites and I can't get it to work for some reason.

If you give me the right code, I'll give you TP (currently 14 points or so I think) and I'll be very happy
CSS4Life is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-28-2007, 03:42 PM Re: Talkupation for best answer - using frames
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
You want to use frames? Or iFrames?
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-28-2007, 03:44 PM Re: Talkupation for best answer - using frames
Defies a Status

Posts: 3,420
Trades: 0
Well that's probably where I got this wrong myself. What I need to do is include their page on my site in a scrollable area beneath my nav. bar on the page. I'm really unsure about which - you tell me really
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 08-28-2007, 03:45 PM Re: Talkupation for best answer - using frames
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
If you wanted to use just frames, if you want the thing to take up the whole screen, you would use this:

Code:
<html>
<head>
</head>
<frameset cols="100%">
<frame src="WEBSITE URL">
</frameset>
</html>

A lot of people make the mistake to try to put in the body tag when they are using frames (which I don't recommend anyway, frames are almost as bad as tables to use).
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-28-2007, 03:48 PM Re: Talkupation for best answer - using frames
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Oh you want the nav bar?

In that case, I would use a iFrame.

Code:
<html>
<head>
</head>
<body>

<div class="nav" height="something like 10%" width="100%"> NAV CODE </div>

<iframe src="WEBSITE URL" height="YOUR HEIGHT...something like 90%" width="100%">

</body>
</html>
Again, iframes are a little out of date, but in some cases they can be helpful.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-28-2007, 03:54 PM Re: Talkupation for best answer - using frames
Defies a Status

Posts: 3,420
Trades: 0
Thanks for that. TP added
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 08-28-2007, 03:58 PM Re: Talkupation for best answer - using frames
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Oh yeah, I forgot. To be valid HTML you need to have a closing </iframe> tag on there. Don't forget that.

Anything that you write in between the two iframe tags will appear if the user doesn't have frames enabled (which is like no one).
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-28-2007, 04:05 PM Re: Talkupation for best answer - using frames
Defies a Status

Posts: 3,420
Trades: 0
OK. Thanks very much
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 08-28-2007, 09:43 PM Re: Talkupation for best answer - using frames
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
ooo i think i might be able to do one better.

if i get you right then this could be a very handy script i made.

you can see it here: http://calm.dansgalaxy.co.uk/link.php

heres that script (all PHP no Javascript in sight!)

here it is minus the design

PHP Code:
<div style="height: auto; margin: 0; width: 100%;">
<?
if($_POST['submit'])
{
$urls = array(); 
$urls['e1'] = "http://www.swindon-marlborough.nhs.uk"
$urls['e2'] = "http://www.cancerbackup.org.uk/"
$urls['e3'] = "http://www.ubht.nhs.uk/BCH"
$urls['e4'] = "http://www.oxfordradcliffe.nhs.uk"
$urls['e5'] = "http://www.gosh.nhs.uk"
$urls['e6'] = "http://www.clicsargent.org.uk"
$urls['e7'] = "http://www.ukccsg.org.uk"
$urls['e8'] = "http://www.act.org.uk"
$urls['e9'] = "http://www.yct.org.uk"
$urls['e10'] = "http://www.swindonweb.com/"
/******************************************************************************************************* 
                     kids links 
*******************************************************************************************************/ 
$urls['k1'] = "http://harrypotter.warnerbros.co.uk";  // Harry potter site 
$urls['k2'] = "http://www.kidsdomain.com/";  
$urls['k3'] = "http://www.beanotown.com/"
$urls['k4'] = "http://www.mrmen.com/site/flash/"
$urls['k5'] = "http://www.childrenfirst.nhs.uk/"
$urls['k6'] = "http://www.bbc.co.uk/cbbc/"
$urls['k7'] = "http://www.bbc.co.uk/cbeebies/"
$link $_POST['link'];
$iframe_src $urls[$link];
}
else {
$iframe_src 'http://calm.dansgalaxy.co.uk'//this is what shows when none is selected and on page load.
}

echo 
'
<form method="post" action="link.php">
<select name="link">
<optgroup label="Useful Links"> 
<option value="e1" '
; if($link == 'e1') {echo'selected="selected"';} echo'>Swindon-Marlborough Nhs Trust</option>
<option value="e2" '
; if($link == 'e2') {echo'selected="selected"';} echo'>Cancer Back-up</option>
<option value="e3" '
; if($link == 'e3') {echo'selected="selected"';} echo'></option>
<option value="e4" '
; if($link == 'e4') {echo'selected="selected"';} echo'></option>
<option value="e5" '
; if($link == 'e5') {echo'selected="selected"';} echo'></option>
<option value="e6" '
; if($link == 'e6') {echo'selected="selected"';} echo'>CLIC Sargent</option>
<option value="e7" '
; if($link == 'e7') {echo'selected="selected"';} echo'></option>
<option value="e8" '
; if($link == 'e8') {echo'selected="selected"';} echo'></option>
<option value="e9" '
; if($link == 'e9') {echo'selected="selected"';} echo'></option>
<option value="e10" '
; if($link == 'e10') {echo'selected="selected"';} echo'>Swindon Web</option>
</optgroup>
<optgroup label="Kids Links">
<option value="k1" '
; if($link == 'k1') {echo'selected="selected"';} echo'>Harry Potter Site</option>
<option value="k2" '
; if($link == 'k2') {echo'selected="selected"';} echo'>Kids Domain</option>
<option value="k3" '
; if($link == 'k3') {echo'selected="selected"';} echo'>Beanotown</option>
<option value="k4" '
; if($link == 'k4') {echo'selected="selected"';} echo'>Mr Men</option>
<option value="k5" '
; if($link == 'k5') {echo'selected="selected"';} echo'>Children First</option>
<option value="k6" '
; if($link == 'k6') {echo'selected="selected"';} echo'>CBBC</option>
<option value="k7" '
; if($link == 'k7') {echo'selected="selected"';} echo'>CBEEBIES</option>
<option value="k8" '
; if($link == 'k8') {echo'selected="selected"';} echo'></option>
</optgroup>
</select>
<input type="submit" value="Go" name="submit" />
</form>
<a href="'
; echo $iframe_src; echo'" target="_blank">Open in new window</a>';

echo 
'<iframe src="'.$iframe_src.'" align="middle" frameborder="1" width="100%" height="700"></iframe> '
?> 
<br />
</div>
this shows a dropdown list of links (so you could have all the tutorals in that)

which the select change and it changes the iframe sec, this version also doesnt use $_GET so theres nothing like link.php?fefreuging=gt its plain old llink.php

if however you want to be able to link directly to a tutoral you just change this:
PHP Code:
$link $_POST['link'];
$iframe_src $urls[$link]; 
to this
PHP Code:
if(isset($_GET['link']))
{
$link $_GET['link'];
}
else {
$link $_POST['link'];
}
 

$iframe_src $urls[$link]; 
and then if its set it will overrride the post :P

anyway there you go

i wrote this because every one i found like this use Javascript which just dosent work for me, and often didnt work in certian browsers. so this is a 100% sure way of doing it that is 100% browser compat

Hope this helps,
Talkupation Apprieciated

if you want any help to customise it you have my addy
Dan
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Talkupation for best answer - using frames
 

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.28796 seconds with 12 queries