Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-16-2004, 09:05 AM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

date

hi,

if i was to put a date code on my page, but over an image how would i do that?
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound
Reply With Quote
  #2  
Old 01-16-2004, 10:02 AM
Surge is offline Surge
Registered User

Join Date: Jan 2002
Posts: 265

There are several ways you can do that. Think you can do that with javascript maybe. I know for sure you can do it with php. Do you have a webserver with php support?
__________________
Squad Tag Generator
Take the guessing work out of making you squad tag.
unavailable for re-design
Reply With Quote
  #3  
Old 01-16-2004, 10:21 AM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

Put this into the htaccess file

<Files sig.jpg>
ForceType application/x-httpd-php
</Files>

Edit and save as sig.jpg

PHP Code:
<?

$color 
imagecolorallocate($image000); //RGB Values
$date "The Date is $today"//What is printed
$today date("m-d-Y"); //Get the Date
$font 'verdana.ttf'//Which font
$image imagecreatefromgif("background.gif"); //the bg image
ImageTTFText ($image80740$color$font$date);
imagepng($image);
imagedestroy($image);

?>
background.gif is the image that that the writing will sit on
Edit the ImageTTF line the first number is font size and the last to are x,y coordinates
The color lineis the color of the text, use RGB values, the RGB value must be in your pallette in background.gif
Reply With Quote
  #4  
Old 01-16-2004, 11:03 AM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

eek hugh?

hi,

um, i hv never used php or other coding just html & java/javascript, i had before on my site i set my banner as a bg pic & placed the javascript over it but now i cant rember, heres the site im trying to get it on,:

site im trying to get it to go ontop of the banner of the right.
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound
Reply With Quote
  #5  
Old 01-16-2004, 11:59 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

<table border="0" cellpadding="0" cellspacing="0" width="IMAGE_WIDTH" height="IMAGE_EIGHT">
<tr>
<td background="IMAGE_NAME">

Place your code somwhere in here..

</td>
</tr>
</table>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #6  
Old 01-16-2004, 12:55 PM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

eek thnks

thanks

[edit] it has mucked it up, the banner dont show & everything is pushed out of place [/edit]
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound

Last edited by spinal; 01-16-2004 at 01:11 PM.
Reply With Quote
  #7  
Old 01-29-2004, 01:54 PM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

re:

hi, i got it to work with javascript but it sits all centerd, i tryed aligning it but that doesnt work, is there anyway of getting it to go a in a stright line instead of it a in 3 lines? this is wot it looks like at mo, site
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound
Reply With Quote
  #8  
Old 01-29-2004, 02:26 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

<td nowrap>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #9  
Old 01-29-2004, 02:53 PM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

re:

ok, thank you again
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound
Reply With Quote
  #10  
Old 02-01-2004, 06:28 AM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

re:

hi again,

<td nowrap> works, but now the image doesnt show it stays blank,

heres the coding so far:

Code:
<td width="1%"><TD background="/images/foot_right2.png" width="172" height="148">&nbsp;
    <td nowrap><br><br><br><br><br><br><br><script>

/*Current date script credit: 
JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/



var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><font color='FFFFF' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</b></font></small>")
</script>
</font></div></TD></TR>
</table>
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
So you want to date my daughter? Stalker61 Humor & Jokes 6 10-13-2009 11:43 AM
IT Date bigsmellyfart Humor & Jokes 3 07-02-2006 10:27 PM
Who would you ask on a date:)? BADDOG General Chat 32 12-08-2005 03:53 PM
kNOW YOUR DATE bigsmellyfart Humor & Jokes 9 06-28-2005 03:47 AM
Date wrong ! JimDirt Feedback / Novahq.net Support 0 08-13-2004 01:47 PM


All times are GMT -5. The time now is 07:06 PM.




Powered by vBulletin®