Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum

Programming / Scripting / Coding Forum Discussion HTML, C++, PHP, CGI, JSP, perl etc

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2006, 01:51 PM
theDragonsDen
Status: Offline
Junior Member
 
Join Date: Sep 2006
Posts: 16
theDragonsDen is on a distinguished road
Default Help with iframe

My First Post -->

Does anyone know how to make a link which will change the height/width of an iframe.

I have this so far.

HTML Code:
<IFRAME src="page.html" name="pagename" width="600" height="400" scrolling="no" frameborder="0"></IFRAME> <P> <a href="otherpage.html" target="pagename">Text of Link</a>
It causes the link to open inside the iframe. What I want is for the iframe to change size when the link is clicked.

Thnks
__________________
Visit theDragon'sDen:
www.theDragonsDen.us.to
.:theDragon'sDen:: Entertainment Archives :.
.: Pics :: Flash Games :: Video Clips :: Animations:.
& More all for FREE
Reply With Quote

  #2 (permalink)  
Old 09-18-2006, 02:20 PM
John
Status: Offline
Administrator
 
Join Date: Sep 2005
Posts: 439
John has disabled reputation
Default

you can try replacing your width and height with 100%.
Reply With Quote

  #3 (permalink)  
Old 09-18-2006, 07:33 PM
theDragonsDen
Status: Offline
Junior Member
 
Join Date: Sep 2006
Posts: 16
theDragonsDen is on a distinguished road
Default

no, the original height and with are fine the way they are. It was just when I wanted it to show the page directed by the link I wanted the height/width to be different when the link is clicked. I think it would use the
Code:
onclick=
command but not sure after that.

I think it would be something like the iframe then:

<a href="otherpage.html" target="pagename" onclick="pagename.width:'200'">Text of Link</a>

Or at least thats one thing I tried but that doesn't work probably because its not in the right format. If someone did know it would be much appreciated.
__________________
Visit theDragon'sDen:
www.theDragonsDen.us.to
.:theDragon'sDen:: Entertainment Archives :.
.: Pics :: Flash Games :: Video Clips :: Animations:.
& More all for FREE
Reply With Quote

  #4 (permalink)  
Old 09-19-2006, 02:16 PM
rock
Status: Offline
Senior Member
 
Join Date: Aug 2006
Location: i dont know
Posts: 242
rock is on a distinguished road
Send a message via AIM to rock Send a message via MSN to rock Send a message via Yahoo to rock Send a message via Skype™ to rock
Default

<a href="otherpage.html" target="_parent" onclick="pagename.width:'200'">Text of Link</a>

parent should work if your changing the parent page and keeping a static frame
__________________
http://boredportal.com
Bored Portal | Games Movies Jokes Forum and counting
Reply With Quote

  #5 (permalink)  
Old 09-19-2006, 02:16 PM
theDragonsDen
Status: Offline
Junior Member
 
Join Date: Sep 2006
Posts: 16
theDragonsDen is on a distinguished road
Default Found the answer

After a lot of searching Ifound it. Of course the answer was Javascript. Here it is...

HTML Code:
<head> <title></title> <script language="JavaScript" type="text/javascript"> <!-- 

function ReSize(id,h,src,tb){
var obj=document.getElementById(id);
obj.style.height=h+\\\\\\\\\\\'px\\\\\\\\\\\';
obj.src=src;
document.getElementById(tb).value=\\\\\\\\\\\'Height \\\\\\\\\\\'+h+\\\\\\\\\\\'px\\\\\\\\\\\';
}
//--> </script></head> <body> <span id="Link1" onclick="ReSize(\\\\\\\\\\\'name\\\\\\\\\\\',600,\\\\\\\\\\\'http://thedragonsden.us.to\\\\\\\\\\\',\\\\\\\\\\\'TB1\\\\\\\\\\\');" >Link Name</span> <p> <iframe id="name" src="http://profusehost.net" width="500" height="200"></iframe> </body> </html>
If you use this code in your site thank me by putting a text link somewhere:
HTML Code:
<a href="http://thedragonsden.us.to">Visit theDragon\\\\\\\\\\\'sDen</a>
__________________
Visit theDragon'sDen:
www.theDragonsDen.us.to
.:theDragon'sDen:: Entertainment Archives :.
.: Pics :: Flash Games :: Video Clips :: Animations:.
& More all for FREE
Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ads in Iframe vampireblood Free Web Hosting Support 7 01-30-2006 02:42 PM
Ads in Iframe (please?) ivokwee Free Web Hosting Support 4 01-29-2006 01:48 AM


All times are GMT -7. The time now is 05:52 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80