| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Designers are strange :)
|
Subnav Script
OK so I found this script which basically puts text over an image so I dont need to create loads of images for my subnav. Here it is.... PHP Code:
The only problem is that it doesn't work. My images are in the right place etc but it doesn't show up. I am using it here. Any ideas???? |
|
|
|
|
|
#2 (permalink) |
|
Web Developer
|
Could be either one of the following: - I think older versions of GD cannot save as GIF, try PNG or JPG - I thought you had to upload the font file to the server and link to it in the script. Verdana is not included in Linux by default. - Is your "nav_link.gif" file really in a subdirectory called _img? seems wierd to use an underscore like that - Perhaps you have to reference locations local PATH (ie /var/www/blah/img/rar.gif) - "imagedestroy($im);" sounds like you are making the image, then destroying it? you really should save the image, instead of making the script create it each time the page is loaded. |
|
|
|
#5 (permalink) |
|
geek
|
I'm sure your problem is PHP is not finding the image(s) in that location. Code:
And why is there an @ in front of the function call? The @ is to hide or prevent the function call from generating an error. you should really check if the file exists using file_exists() rather then preventing the error. change the first few lines to this: PHP Code:
then visit this link and you shuld get an error message that will help you out. http://www.publicwebserver.com/nav_link.php?text=Home |
|
|
|
#8 (permalink) | |
|
Designers are strange :)
|
Quote:
It was something different but I've been away again because my PC broke so I got a new one. :p |
|
|
|
|
#9 (permalink) | ||
|
geek
|
Quote:
Do this and you should get something more informative. Quote:
|
||
|
|
|
#10 (permalink) | |
|
i'm done, son
Join Date: Jan 2005
Posts: 12,262
|
Quote:
"/_css/" "/_images/" "/_scripts/" |
|
|
![]() |