Dynadot — .com Registration $8.99

Need code that you can put text over a image

Spaceship Spaceship
Watch

NetworkTown.Net

Account Closed
Impact
2
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
ewirehosting said:
Need code that you can put text over a image like say i had this image: http://www.namepros.com/images/npblogo2.gif and i wanted to put text over it what is the html or php for that
i dont get what u want....rediting image or put a label?
i think you meant this:
Code:
<HTML>
<img border="0" src="here the path" alt="Here the text u want to label" width="155" height="247">
<html>
Code:
<?php
#### Generated by Html to PHP converter By Disipal Site (www.disipal.net) ####


echo"<HTML>"
  . "<img border=\"0\" src=\"here the path\" alt=\"Here the text u want to label\" width=\"155\" height=\"247\">"
  . "<html>"
 ."";

?>
 
0
•••
You should also use the TITLE tag. The ALT tag was not designed to serve as a tooltip in the first place. It's just in case the image cannot be loaded so there is a caption, and for text-only browsers.


http://www.htmlhelp.com/feature/art3.htm
 
0
•••
no, i ment like you are reading my post yes, in the background there is blue yes insted of the blue i want an image
 
0
•••
oh i think he means using GD ?
 
0
•••
The following is the very basics. I'll let you go to PHP.net to get more detailed info on the individual functions. The image the below code produces can me seen http://coreymail.com/namepros/namepros.png

PHP:
<?
$Copyright = "Copyright, 2005 - www.yoursite.com";
$image = "http://www.namepros.com/images/npblogo2.gif"; 
$im = imagecreatefromgif($image); 
$sc  = ImageColorAllocate ($im, 0, 0, 0);
ImageStringup($im, 2, 255, 70, "Do Not Copy", $sc);
ImageString($im, 3, 5, 30, $Copyright, $sc); 
header("Content-Type: image/png"); 
Imagegif($im,'',100); 
ImageDestroy ($im); 
?>

Need more help, or a bit fancier, let me know :alien:
 
0
•••
dont matter JFS has coded the thing i needed now you people did not really understant whjat i was saying
 
0
•••
ewirehosting said:
dont matter JFS has coded the thing i needed now you people did not really understant whjat i was saying

:p
 
0
•••
he just wanted the layout coded :)
 
0
•••
Why use scripting?

Just do this

<TABLE>
<TR>
<TD style="background-image:yourimage.jpg">
Your Text here
</TD>
</TR>
</TABLE>

Can also do this with divs as well.
 
0
•••
Of course, why would you need a "code"? Just create a table with a single or more rows and cells. Just put the image as a table/cell background and type whatever text you want as table data.
 
0
•••
tgo said:
Why use scripting?

Just do this

<TABLE>
<TR>
<TD style="background-image:yourimage.jpg">
Your Text here
</TD>
</TR>
</TABLE>

Can also do this with divs as well.


yeah this is all you need man, dont mixed into that scripting crap for what u r looking to do.
 
0
•••
Why don't you put the image in background tag and then just put the text on it.

It will acheive the efect that you want.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back