A Digital Age Deserves A Digital Leader

iframes?

iframes?

Postby c0ldfyr3 » Mon Apr 28, 2008 10:09 pm

is it possible to embed an iframe in a image?
if so how, and if not..

how would i link my wow charachter from here

http://www.wowarmory.com/character-shee ... Diabloloco

to myspace, or on a website of my own.
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Postby poisonbl » Tue Apr 29, 2008 3:27 pm

No you can't embed an iframe into an image, but if you use php or some other means of server generated pages, you can query a lot of the armory info at page load, though I've not looked too heavily into the specific coding to do it. You can also use one of the armory based sig generation sites that will pull the info for you, throw it into an image, and update weekly or so ...

http://www.dkpsigs.com is the site I used, and it looks like this:

Image

But, there's a ton of other sites that do it as well... if you want a more "full" view, you'll likely have to build your own page that references the armory data, or just pull the whole of the armory page into an iframe. If you want a image based border *around* the iframe, you should be able to do that with css, but I don't have time to look up specifics.
Image
Image
PRO Level 10
User avatar
Posts: 432
Joined: Mon Nov 15, 2004 10:02 pm
Location: WVU -- Morgantown, WV. -- USA (TZ: -5 hrs GMT, -4 DST)

Postby c0ldfyr3 » Wed Apr 30, 2008 12:10 am

well myspace is very stricked, so i was thinking as a work around i can just maybe use an iframe with in an image.. but then i remembered the GD2 ext. and i can use php to create an image..

would it be possible to use php to grab the links and such from the armory and add the code to an image ....


IE
Code: Select all
$im = imagecreate(800, 600);

// white background and blue text
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);

// write the string at the top left
imagestring(http://www.wowarmory.com/character-sheet.xml?r=Lightbringer&n=diabloloco);

// output the image
header("Content-type: image/jpeg");
imagejpeg($im);




where "http://www.wowarmory.com/character-sheet.xml?r=Lightbringer&n=diabloloco" is the image???
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Postby c0ldfyr3 » Wed Apr 30, 2008 1:20 am

this just isn't enough for my myspace.. lol no onw will even notice it...


Image


i want my friends to be able to view my toon from my profile page.. hmmmm
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests