Need code that you can put text over a image

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

NetworkTown.Net

Account Closed
Impact
2
0
Close
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
Close
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
Close
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
Close
oh i think he means using GD ?
 
0
Close
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
Close
dont matter JFS has coded the thing i needed now you people did not really understant whjat i was saying
 
0
Close
ewirehosting said:
dont matter JFS has coded the thing i needed now you people did not really understant whjat i was saying

:p
 
0
Close
he just wanted the layout coded :)
 
0
Close
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
Close
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
Close
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back