![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Such Fun!
Industry Role:
Join Date: Feb 2008
Posts: 13,900
|
[HELP!] how to change HTML into an iFrame?
This may seem like a dumb fucking question but I can't figure out how to do it
![]() Example of what I need to do; Change this: Code:
<a href="http://www.blahblah.com"><img src="http://www.blahblah.com/blah.jpg"></a> Code:
<iframe src="http://www.blahblah.com/?????????" border="0" width="728" height="90" name="whatever" scrolling="no" frameborder="0"></iframe> It's probably something simple i've overlooked but I tried a few combinations and all have failed so far. Any help would be greatly appreciated ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
ex-TeenGodFather
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
|
You make a page that has your 'upper code' and nothing else.
Then you iframe that page. Not sure why you'd want to do that though.
__________________
..and I'm off. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
mrwilson 2.0
Industry Role:
Join Date: Jul 2007
Location: ICQ: 465406783
Posts: 5,122
|
Or you can use a div and set the css to overflow: scroll; this way its all inside one page
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Such Fun!
Industry Role:
Join Date: Feb 2008
Posts: 13,900
|
Thanks guys
![]() I thought it would be something simple ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
heres a rather dirty way of doing it
Code:
<html> <body> <iframe id=adframe src="#" width=600 height=200></iframe> <button onclick=adframe.document.getElementById('stuff').innerHTML=s1>Change html 1</button><br> <button onclick=adframe.document.getElementById('stuff').innerHTML=s2>Change html 2</button><br> <script type="text/javascript"> var s1 = "<a href=https://gfy.com>gfy</a>"; var s2 = "<a href=http://ytmnd.webspacemania.com/htyt/>htyt</a>"; adframe.document.write("<div id=stuff></div>"); </script> </body> </html>
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
depending on what your doing withit you might want to set it up differently but this way you can keep some content in the iframe that stays and just change part of the page within the iframe
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Such Fun!
Industry Role:
Join Date: Feb 2008
Posts: 13,900
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |