Bit offtopic, but: In alot of websites i see i.e <div class/id="wrapper">, is that the name of the div of the whole webpage, e.x that right before the </body> tag the </div> tag of the wrapper is?
Bit offtopic, but: In alot of websites i see i.e <div class/id="wrapper">, is that the name of the div of the whole webpage, e.x that right before the </body> tag the </div> tag of the wrapper is?
Minefield = x64 testing platform of firefox.
And grats with first GD. Mine was visitor counter with history like this one
![]()
If you assign a class or id to an object, you can give it a style via CSS or use it in JS.
have funPHP Code:<?php
$image = "blabla.gif"; // where it creates an image from
$image = imagecreatefromgif($image);
/*Colors in RGB */
$white = imagecolorallocate( $image, 255, 255, 255 ) ;
$black = imagecolorallocate( $image, 0, 0, 0 ) ;
$orange = imagecolorallocate( $image, 255, 138, 0 ) ;
$pink = imagecolorallocate( $image, 255, 182, 193 ) ;
$green = imagecolorallocate( $image, 0, 255, 0 ) ;
$red = imagecolorallocate( $image, 255, 0, 0 ) ;
$blue = imagecolorallocate( $image, 0, 0, 255 ) ;
$text = $black;
$x = "0";
$y = "0";
$font = imageloadfont("fontname.gdf"); //gdf font
imagestring( $image, $font, $x, $y, stripslashes('Line 1'), $text ) ;
$y += 12 ;
imagestring( $image, $font, $x, $y, stripslashes('Line 2'), $text ) ;
header( "Content-Type: image/gif" ) ;
imagepng( $image ) ;
imagedestroy( $image ) ;
?>
if you dont know the stuff with gdf fonts: then use this
PHP Code:<?php
$image = "blabla.gif"; // where it creates an image from
$image = imagecreatefromgif($image);
/*Colors in RGB */
$white = imagecolorallocate( $image, 255, 255, 255 ) ;
$black = imagecolorallocate( $image, 0, 0, 0 ) ;
$orange = imagecolorallocate( $image, 255, 138, 0 ) ;
$pink = imagecolorallocate( $image, 255, 182, 193 ) ;
$green = imagecolorallocate( $image, 0, 255, 0 ) ;
$red = imagecolorallocate( $image, 255, 0, 0 ) ;
$blue = imagecolorallocate( $image, 0, 0, 255 ) ;
$text = $black;
$x = "0";
$y = "0";
imagestring( $image, 3, $x, $y, stripslashes('Line 1'), $text ) ;
$y += 12 ;
imagestring( $image, 3, $x, $y, stripslashes('Line 2'), $text ) ;
header( "Content-Type: image/gif" ) ;
imagepng( $image ) ;
imagedestroy( $image ) ;
?>
Now u've released that, i wanna ask you:
Can i copy parts of your lay-out, then edit it etc etc?
Of course you can, i also ripped it somewhere from an free layout site
brb ill search the zip file
see attachment
Thx =D
I've added some stuff now:
Login, Register, User Panel (where you can change password), and some cool thing: when you log in, a cookie is made with ur username, hwne you log out its kept, and when you go to login again, your username will be there already, and if you want to remove it? no problem! just click 'Reset' and it'll remove your name by the magic of PHP =p
I edited the menu a lil', some colors, etc:
http://floris-web.no-ip.biz/test/divs/
--
Please dont spam full my registering, since its not 100% completely waterproof qua lengths, etc.
Am going to make an admin panel soon =p
Gonna do some CS now, to cool down =p
Leuk gedaan
Nice work
----
btw if somebody need the images: (of the firefox, etc)
Bedankt =)
Thanks =)
--
How u get the image in ur web?
I get an header error =S
what error
The regular 'Headers already sent by <file> on line <line>'
1. did you editted the script?
2. Did you installed gd on your apache server ?