OK, I got an upload script working. And, had an idea. How can I use JS, Ajax, or PHP to update an img tag by typing in the link to the image then clicking a button? Could this be used?
Printable View
OK, I got an upload script working. And, had an idea. How can I use JS, Ajax, or PHP to update an img tag by typing in the link to the image then clicking a button? Could this be used?
That won't allow you to resize the image, but you can use a form and set an image tag.
With PHP, you would submit the form, retrieve the value as $_GET['fieldname'] then echo that into the SRC for the image.
With Javascript, you would create a function that dynamically changes the SRC of the image based on document.getElementById('fieldname').value, triggered by the onchange event for the field, perhaps. (Then you could just use 'this.value'.)
Do you have a JS example? I'd do it real quick but I'm with my family watching a movie.
If you want someone to actually write the page for you, you'll need to get paid help-- see the section at the bottom of the forums.Code:<img src="demo.jpg" id="myimg" alt="imgtitle" />
<input type="text" onchange="document.getElementById('myimg').src = this.value;" />
Thank you very much! I would not like to pay, besides I'm not allowed :P (If you look at my profile, you'll see I'm 12 years old). This would work out just fine! :D
Is it possible to make a <BR> 'enter' at a certain amount of pixels? Maybe with CSS? One BR tag is too much. Get rid of it and it isn't enough. Do you understand what I mean? I'm confusing myself :P
Use a margin instead, or you can set the margin of the <br> tag.
<br style="margin-top:10px;">
THANK YOU! This works great! Also, out of curiosity, is there such a thing as a Margin-Bottom? Lol. Thanks DJR you've been a great help!
EDIT: And btw, what gallery script do you recommend or do you recommend one? Lol.
Yes, margin-bottom, margin-top, margin-left, margin-right, and 'margin' itself applies to all 4 as a general property.
A gallery entirely depends on what you want it to do. There are lots here on DD (and elsewhere if you can't find one that fits).
Personally I've used this and I like it:
http://www.dynamicdrive.com/dynamici...photoalbum.htm
Generally, more features means more configuration and more to customize, so use the simplest one you can find that will do everything you need.
Thanks! Unfortunately, only Margin-top is working :/ But I'm using negative numbers for it :)
Now the image on it is fantastic, I can give you an image if you want. This is actually being done in HTML, JS, and CSS so far. But, about grabbing the screen, how could it be done again? If it were put into a database, could the user download it? Like give the user a link to download it?
EDIT: To try it out, go to: http://dbanimefree.x10.mx/cardgenerator.html and first type in an image link, (the text box right under the div), then choose a template (a select box to the far right after the text (still under the div)) then you can drag the symbols at the bottom of the page. Speaking of that, how do I make 'infinity' images on one image? Or atleast a bunch. Tell me what you think ;)