Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 07-05-2004, 10:38 PM Text Box Problem
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Hey, Im sorry if this is the wrong place, but this is the closest fit I could find.

Im making a website for a gaming guild, and Im trying to make auto-resizing text boxes for announcements
Ex: http://truly.f2g.net/site.jpg (look at the thing I circled in the red).

And I have all the individual pieces needed to make it (http://truly.f2g.net/text/), the only problem is that I dont know how :P. I can get it to work by resizing the picture everytime, but that obviously makes the picture really bad. Ive talked to a couple ppl, non of whome who come up with a solution, they though maybe php/java would be the only way around this.

Again thats where I run into a problem cuz I dont know PHP, and I just started teaching myself Java, so if anyone could help me out that would be great.

thnx,
Truly
Truly is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2004, 07:18 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Truly,

Are you saying that textbox is actually an image? If so, I don't know of any easy way to quickly change images, although you should take a look at PHP's image editing library -- I believe it is called GD. I've never used it but I've heard others in the forums discussing it. Perhaps it will allow you to dynamically create the images you need and still allow for good text formatting.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-06-2004, 02:23 PM
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
well what would you suggest then, cuz yeh at the moment, the frame of the box would be made out of jpegs or some other format. and i dont no how i would do that :P
Truly is online now
Reply With Quote
View Public Profile
 
Old 07-06-2004, 03:15 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
There is also a package out there called ImageMagik (I believe that's how it's spelled). It is a command-line interface for doing image manipulation. Google it to see what you can find -- maybe others know a bit about how easy it is to use. But I know it has the capability to do what you need.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-06-2004, 04:29 PM
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
yeh but with this, wont i have to re-make the frame everytime? isnt there any other way besides editing the picture?
Truly is online now
Reply With Quote
View Public Profile
 
Old 07-06-2004, 06:09 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
You could lay down a blank image as either a table background image or use a CSS z-layer to lay the text over it.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-07-2004, 03:09 PM
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
ok sry for still buggin u bout this, but i promise this will be the last time :P. I got a new idea for how to do this using css, but Im to much of a newb to pull it off . I have the basic done, I was wondering if you could tell me what Im still doing wrong, besides the fact that the bottom part has green in it.

Also I was wandering if there was a way to force text to go where you want. Kind of like mapping, where you tell it the coordinates you want it to go at.

Thnx
Truly is online now
Reply With Quote
View Public Profile
 
Old 07-07-2004, 06:49 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Truly,

To make it the background of a table cell, for example:

HTML Code:
<td style="background: url('Images/mybackground.jpg');"><span style="font: bold 10pt Arial; color: rgb(255,240,240);">This is my text that I want to appear over the image.</span></td>
The only thing about this solution is that you need to make sure you don't put so much text there as to cause the table cell to expand beyond the size of the image in the background.

As for dictating the coordinates of text to appear on a page, yes, you can with absolute positioning:

HTML Code:
<div style="position: absolute; top: 200px; left: 140px;">My text will appear 200 pixels down and 140 pixels over.</div>
But CSS-P (CSS positioning) is a complex topic and so you need to read up a bit on that. It's not always as simple as that, particularly if you are dealing with child blocks, etc.

Hope this helps.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-07-2004, 11:00 PM
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
ok i have everything setup the way i want if (for now ), but is there anyways to get rid of that white space between the top picture, and the table bg?
Truly is online now
Reply With Quote
View Public Profile
 
Old 07-08-2004, 02:01 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
Truly,

Went back to your URL to see what you were describing, but the link is now offline......
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-08-2004, 04:25 PM
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
o sry, try this http://truly.f2g.net/text/test2
Truly is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Text Box Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31774 seconds with 12 queries