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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-03-2009, 09:20 AM   #1
Si
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>
Into something like this:
Code:
<iframe src="http://www.blahblah.com/?????????" border="0" width="728" height="90"  name="whatever" scrolling="no" frameborder="0"></iframe>
How do I do it?

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
Si is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 09:24 AM   #2
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
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.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 09:30 AM   #3
mrwilson
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
mrwilson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 10:04 AM   #4
Si
Such Fun!
 
Industry Role:
Join Date: Feb 2008
Posts: 13,900
Thanks guys

I thought it would be something simple
Si is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 10:43 AM   #5
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
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>
what you are doing is basically setting a blank iframe , adding a div called stuff to it, then injecting the html with script
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 10:44 AM   #6
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
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
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 10:45 AM   #7
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
is there posibility to tell frame what part of page to show exactly, not just margins
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-03-2009, 02:05 PM   #8
Si
Such Fun!
 
Industry Role:
Join Date: Feb 2008
Posts: 13,900
Quote:
Originally Posted by SmokeyTheBear View Post
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>
what you are doing is basically setting a blank iframe , adding a div called stuff to it, then injecting the html with script
That seems a bit long winded. but I'll remember that for the future. might come in handy elsewhere
Si is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.