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
pleaseeee help.....linking two target(iframe and top of the page)
Old 01-13-2008, 09:37 PM pleaseeee help.....linking two target(iframe and top of the page)
Novice Talker

Posts: 14
Name: paparanch
Trades: 0
elow guyz...i have this problem with my site which is actually not yet uploaded in the internet...

i have a very long page, with an iframe at the top...and i want that when a user click the link at bottom of the page, another page will be targeted in the iframe and at the same time the page will be back to top since the iframe is located at the top of my page...i already use the <a href="top"></a> code...but i also have to target my iframe...is it possible to have like this?

<a href="#top", href="mypage.html" targer="myframe">MYPAGE</a>

i know this won't work...can somebody help me with this stuff?

hope you guyz understand what im trying to say here...

thnx a lot for the help...
paparanch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-13-2008, 09:53 PM Re: pleaseeee help.....linking two target(iframe and top of the page)
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
if you want to be able to switch the pages that you need to use some sort of scripting language.

Put something like this as your link:
<a href="index.php?myframe="thisgoesinframe.html">

Then where your iframe code is:

<iframe src="<?php echo $_GET['myframe'] ?>">
</iframe>

You can always check if 'myframe' isset() before you do that so that you can have it go to default page otherwise. Hope that helps
Truly is offline
Reply With Quote
View Public Profile
 
Old 01-13-2008, 10:15 PM Re: pleaseeee help.....linking two target(iframe and top of the page)
Skilled Talker

Posts: 52
Name: Dustin
Trades: 0
Ok, here's an easy way for you to do this. Sorry if someone beats me to it before I finish typing.

on your "mypage.html" code, at the top of the page put: <a name="top"></a>

when you link to your iframe, put this: <a href="mypage.html#top" target="myframe">Link here</a>

I just tested it to make sure it works, so try it out..
__________________

Please login or register to view this content. Registration is FREE
TributeK is offline
Reply With Quote
View Public Profile
 
Old 01-14-2008, 08:54 AM Re: pleaseeee help.....linking two target(iframe and top of the page)
Novice Talker

Posts: 14
Name: paparanch
Trades: 0
woooooooow! it works! thank you so much TributeK!
and to
Truly for giving me another idea...keep up the good work guyz!
paparanch is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to pleaseeee help.....linking two target(iframe and top of the page)
 

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