Embed an images in a textfield

Hi has anybody tried embedding an image in a textfield using
the <img> tag?
I've found the image jumps on to the next line or in some way
doesnt work the way i intend it.
Is there a trick to getting the images to line/flow up with
the TEXT correctly?
Cheers

I believe this tutorial is about doing what you're talking
about via xml.
http://www.actionscript.org/resources/articles/122/1/Loading-Images-Via-XML-into-Flash-MX- 2004/Page1.html
This is part 2, there's also a tutorial on xml101 here (the
first part, if
you need it)
http://www.actionscript.org/resources/articles/9/1/XML-101/Page1.html
Hope it helps.
KB
"Greg Ambrose" <[email protected]> wrote in message
news:eojes5$i60$[email protected]..
> I'm not sure what you intend but I've noticed a couple
of things when
> using the img tag. Often I have to use <br> tags
to move the vertical
> spacing so that I get something reasonable. Also, when
using an image of,
> say, 250 pixels wide by 75 pixels in height, the image
appears about the
> right height but narrower than 250 pixels and doesn't
look good. I chalked
> it up to Flash's limited support of HTML tags and CSS.
If you find a
> solution to your problem, please post it here as I would
appreciate the
> info.
>

Similar Messages

  • Inserting or embed and image into cfmail output from a database-stored path to an actual image.

    I am trying to insert or embed and image into cfmail from a database-stored path to an actual image. The actual JPEG image is stored in a folder called "images_personnel". The path to the image under the column titled photopath is stored in my database table as "/file/images_personnel/28.jpg". Displaying the image on the screen renders without a problem, embedding the same image as part of a cfloop query does not insert/embed the image into an email. All of the other output of the same cfloop displays and emails just fine. However none of the photos of each personelle show up. What an I doing wrong?
    My code is below:
    <cfquery name="Staffreport" datasource="master">
    Select staffreport.*, name.personnelid, name.email, name.last, name.noiid, stafflt, CONCAT(name.fname,' ',name.middle,' (',name.last,')') AS teammember, CONCAT(name.fname,' ',name.middle) AS teammember2, concat(name.photopath,'',name.photo)as hisphoto, stafflt.*, trim(concat(ltfname,' ',ltmiddle)) as LT from Staffreport, name, stafflt
    where 0=0
    and stalt = '#Session.user_id#'
    and ltid = '#session.user_id#'
    and staweekbegin = <cfqueryparam value="#form.staweekbegin#" cfsqltype="cf_sql_date" />
    AND staweekend = <cfqueryparam value="#form.staweekend#" cfsqltype="cf_sql_date" />
    AND stapersonnelid = personnelID
    <!---AND ltid = stalt--->
    AND CITY = 'richmond'
    AND STATUS <> 'd'
    AND STATUS <> 'T'
    AND type = 'personnel'
    Group by personnelid
    Order by teammember
    </cfquery>
    <cfmail>...
    <cfloop query="staffreport"><br />
    <table width="90%" border="0" cellspacing="2" cellpadding="4" align="left">
      <tr>
        <td colspan="2" align="center" valign="top" nowrap="nowrap" bgcolor="cccccc"><strong><font color="black"><cfif #staffreport.last# eq ".">#Ucase(Staffreport.teammember2)# <cfelse>#Ucase(Staffreport.teammember)#</cfif> - ID: <cfoutput>#Staffreport.noiid#</cfoutput></font></strong></td>
      </tr>
    <tr>
        <td align="left" valign="top" nowrap="nowrap" bgcolor="#000000">Name:</td>
        <td>#Staffreport.teammember#</td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Photo:</td>
        <td bgcolor="EBEBEB">
    <img src="#staffreport.hisphoto#" alt="Photo" width="98" height="98">
    </td>
      </tr>
    <tr>
        <td bgcolor="E6E1FD">Email:</td>
        <td bgcolor="EBEBEB">#staffreport.email#</td>
      </tr>
    </table>
    </cfloop>
    </cfmail>

    You'll need to provide a full URL link to the image ("http://mywebserver/file/images_personnel/28.jpg"), not just a relative path.  Remember, the email client that is used to view the email content knows nothing of the internals of your web server - it can only follow a complete URL to get images and other resources.
    -Carl V.

  • How to embed the Images in the java sourse

    How to embed the Images in the java sourse
    The size of the file will be too large while I put the binary code of the image into the java sourse!
    thanks

    You could encrypt them with a private key and then
    decrypt them with a public key.
    Almost had it... public key encryption works the other
    way around... otherwise what's the point of
    encrypting... if the decryption key is public?Spinoza's right. Public key encryption works both ways, but it would be useless in this case to encrypt with the private key. The problem is, how do you package your private key with the application in a way that doesn't allow the user to get it? Encrypt it? :-) I agree that there's no point to this exercize. If users want to screw up the application by editing its image files, let 'em.

  • How do I embed an image in a post here?

    How do I embed an image in a post here?

    Hi Roger!
    Some additional tips.
    To post an image in  Discussions, create a Screen Shot of the image you wish to post.
    Upload the image to an online storage facility, like one of these linked to below.
    Flickr
    ImageShack
    PhotoBucket
    PICVAULT
    Twango
    tinypic
    imageno
    Then use HTML formatting, to insert the URL of the location.
    Use this format <img src="Insert URL Here">
    Post the resulting line of text.
    You can alternately insert the URL of the image between ! (Exclamation Marks) to have it appear in a post.
    Keep the images small, and unobtrusive, when possible.
    If the image is large, you can use this format:
    <a href="Insert URL Here"target="_blank"><img src="Insert Same URL Here" width="Insert Desired Size Here"></a>
    Desired Size is a number, dependent on the size to be displayed in the post, such as 20, 50, 200, etc. You can experiment with that number.
    Below that type "Click to View Full Size".
    The image will appear in the post at the size you selected, but when clicked, will open full screen.
    You can also just post a Link/URL, to the image location, using this format:
    <a href="Insert URL Here">Type Title Here</a>
    Or use Skitch.
    Quoted from the Skitch website:
    "Skitch.com is a webservice that works hand in hand with our application Skitch to give you 1-click uploading of images for fast and fun image sharing."
    ali b

  • How do I embed an image with a hyperlink in an Outlook email?

    What's the best way to create an email (in Outlook for Mac) with an image (embedded) that contains a hyperlink?
    To be clear, I want to embed an image in the message that contains a hyperlink, I don't want to attach a PDF with a hyperlink. thanks

    Ask Microsoft... the owner of Outlook
    http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US

  • How to embed an Image onto a Shape?

    I'd like to use Shape.contains() and intersects() functionalities on clipped free-form Images on a custom component. Could we embed an Image into a Shape? If the answe is yes, then, how?
    If Shape is not usable, then, how could we achieve similar functionalities on Images? Do we only have run-of-the-mill coord caluculation?

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class ImageShapes extends JPanel {
        BufferedImage image;
        Shape[] shapes;
        JLabel xLabel, yLabel;
        ImageShapes(BufferedImage image) {
            this.image = image;
        public void setCoordinates(Point p) {
            String sx = "";
            String sy = "";
            if(p != null) {
                sx = String.valueOf(p.x);
                sy = String.valueOf(p.y);
            xLabel.setText(sx);
            yLabel.setText(sy);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            if(shapes == null)
                initShapes();
            Shape origClip = g2.getClip();
            for(int j = 0; j < shapes.length; j++) {
                g2.setClip(shapes[j]);
                Rectangle r = shapes[j].getBounds();
                // center image in clip shape
                int x = r.x + (r.width - image.getWidth())/2;
                int y = r.y + (r.height - image.getHeight())/2;
                g2.drawImage(image, x, y, this);
                // smooth the edges of the clipped image
                g2.setClip(null);  // or origClip
                g2.setPaint(getBackground());
                g2.draw(shapes[j]);
        private void initShapes() {
            int w = getWidth();
            int h = getHeight();
            shapes = new Shape[3];
            shapes[0] = new Ellipse2D.Double(w/2, h/3, 175, 175);
            int R = 60;
            int sides = 5;
            int[][]xy = generateShapeArrays(w/4, h/4, R, sides);
            shapes[1] = new Polygon(xy[0], xy[1], sides);
            GeneralPath path = new GeneralPath();
            double x1 = w/4;
            double y1 = h*9/16;
            double ctrlx1 = w*9/32;
            double ctrly1 = h*5/16;
            double ctrlx2 = w*11/16;
            double ctrly2 = h*9/16;
            double x2 = w/4;
            double y2 = h*15/16;
            CubicCurve2D curve = new CubicCurve2D.Double(x1, y1, ctrlx1, ctrly1,
                                                         ctrlx2, ctrly2, x2, y2);
            path.append(curve, false);
            AffineTransform at = AffineTransform.getTranslateInstance(w/2, 0);
            at.scale(-1,1);
            Shape left = at.createTransformedShape(curve);
            path.append(left, false);
            shapes[2] = path;
        private int[][] generateShapeArrays(int cx, int cy, int R, int sides) {
            int radInc = 0;
            if(sides % 2 == 0)
                radInc = 1;
            int[] x = new int[sides];
            int[] y = new int[sides];
            for(int i = 0; i < sides; i++) {
                x[i] = cx + (int)(R * Math.sin(radInc*Math.PI/sides));
                y[i] = cy - (int)(R * Math.cos(radInc*Math.PI/sides));
                radInc += 2;
            // keep base of triangle level
            if(sides == 3)
                y[2] = y[1];
            return new int[][] { x, y };
        private JPanel getLabels() {
            xLabel = new JLabel(" ");
            yLabel = new JLabel(" ");
            Dimension d = new Dimension(45, 25);
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(2,2,2,2);
            gbc.weightx = 1.0;
            addComponents(new JLabel("x"), xLabel, panel, gbc, d, false);
            addComponents(new JLabel("y"), yLabel, panel, gbc, d, true);
            panel.setBorder(BorderFactory.createEtchedBorder());
            return panel;
        private void addComponents(JComponent c1, JComponent c2, Container c,
                                   GridBagConstraints gbc, Dimension d, boolean b) {
            gbc.anchor = gbc.EAST;
            c.add(c1, gbc);
            c2.setPreferredSize(d);
            gbc.weightx = b ? 1.0 : 0;
            gbc.anchor = gbc.WEST;
            c.add(c2, gbc);
        public static void main(String[] args) throws IOException {
            BufferedImage image = ImageIO.read(new File("images/cougar.jpg"));
            ImageShapes test = new ImageShapes(image);
            test.addMouseMotionListener(new ShapeFinder(test));
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test);
            f.getContentPane().add(test.getLabels(), "Last");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class ShapeFinder extends MouseMotionAdapter {
        ImageShapes imageShapes;
        boolean hovering = false;
        ShapeFinder(ImageShapes c) {
            imageShapes = c;
        public void mouseMoved(MouseEvent e) {
            Point p = e.getPoint();
            boolean haveSelection = false;
            Shape[] shapes = imageShapes.shapes;
            if(shapes == null) return;
            for(int j = 0; j < shapes.length; j++) {
                if(shapes[j].contains(p)) {
                    haveSelection = true;
                    imageShapes.setCoordinates(p);
                    if(!hovering)
                        hovering = true;
            if(!haveSelection && hovering) {
                hovering = false;
                imageShapes.setCoordinates(null);
    }

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • How to embed multiple images

    Hello!
    I have been tying to figure out how I could easily embed multiple linked images easily. I have some 1000 .svg  images which have about 1-7 .tif images linked in to them. I now need to get those links embedded and becouse of the amount of images I'm hoping to make an action out of it. I have a script to embed single image in .svg but haven't have luck with multiple embeddings.
    Any ideas?

    Great got it working now. Thanks for Your help.
    BUT (there always seems to be a but) now I'm facing new troubles. Kind of the same that Dovidgold seems to be facing http://forums.adobe.com/message/4733717#4733717
    After running the script on a image with two linked items. One of the items jumps on a different layer and scales it self to original size.
    So, once again, any ideas?

  • How do you embed an image in an email?

    Am trying to embed an image (jpeg) in an email but when I send it it comes out to the recipient as an attachment.  How can I ensure the image is received in an embedded format?

    Check the menu item   "Edit > Attachments > Always insert attachments at end of message".  If it is on, disable it.
    You could also use the Mail stationary to format a mail with embedded photos. The stationary dropdown menu is in the upper right corner of the "New Message" window.

  • How can i embed an image within a table

    how can i embed an image within a single column of a table

    noticed this question elsewhere and have seen that the trick is to copy and paste not drag & drop
    incase anybody else was wondering

  • How do you embed an image inside an animated arrow in Motion?

    I just designed an arrow by using the b-spline tool and selected "arrow" for my end-cap.
    Is it possible to embed an image into my arrow?
    I am working on a WWII documentary about North Africa and I have this map animation sequence of North Africa where I need arrows (armies) to have the British, American, Nazi flags embedded into them. I have no idea how to do this. Please any hlep would be much appreciated.
    Thanks in advance,
    - Nicholas

    Howdy,
    Adam pretty much described this, already. You want to take a flag image (or maybe a tiled grid of a bunch of little flags, whatever), then apply and image mask to it, then make the arrow shape the reference for the mask. One more time for the people in the cheap seats:
    1. Apply an image mask to the flags (Object->Add Image Mask or CmdShftM).
    2. Select the image mask object and view the Image Mask tab in the Inspector.
    3. From the Layers List, drag-and-drop the arrow shape into the Mask Source image well.
    By default, the mask is applied with Stencil enabled (also found in the Inspector), so the mask will be lined up with the position of your arrow shape object.

  • Is there a way to embed an image inside a script?

    I've a logo I use on a user interface.  Right now I'm opening the image from a file, is there a way to embed the image inside the script so I don't have to distribute the image with the script?

    xbytor, of the photoshop scripting forum has a tool kit that you can download & instal. The majority is to do with PS but part of that contains some conversions that 'may' be of use to you… See this recent post in the Photoshop forum…
    http://forums.adobe.com/thread/729330?tstart=0
    Not done this myself so if you have any problems you may be better posting back there… I probably won't be able to help…

  • How To "Dis-Embed" An Image From A .Doc File?

    Here's what I've got. I'm working on a flier to be commercially printed; it contains four photos and text. I've spent a lot of time with each photo, massaging each in PE to maximize its quality when it's eventually printed, and saved each as a TIFF file. (I "tested" each photo's printability by seeing what I get when I run it through my own Canon printer.)
    What I did next was to take each of the PE processed photos, moved them into a MS Word text document, and saved the final flier results as a .doc file.
    Now, my commercial print shop tells me that better results might be obtained by me giving them the original photos instead of using the completed .doc flier. This is where my problem arises: it's not that I saved too few, I saved too many versions of the photos as works in progress. It's not an easy job to find the exact photo version I, finally, embedded. Using the "direct" approach doesn't seem to work. When I drag a photo out of its .doc file onto my desktop and try to open this clipping (PICT) with PE I get the message, "Could not complete your request because an unexpected end-of-file was encountered."
    So, how do I "dis-embed" each of these photos from the original document and without losing all the nice stuff I did when first processing them? Any comments and suggestions will be appreciated.
    Dave

    Hi,
    You can use javax.swing.ImageIcon like so
    ImageIcon anIcon=new ImageIcon("image.jpg");Hope thats what you are after,
    Cheers
    Jack573

  • Why can I no longer drag a .eps file from finder into a slide to embed the image?

    I have always been able to embed a .eps file into a Keynote presentation by dragging the file from Finder onto a slide. This no longer seems to work in Keynote 6.1 in Maverick 10.9.1

    This is a complete deal breaker for me. The main reason I was using keynote was that I could write equations on latex and drag them directly as eps images to the slides. I can still do it if I export them as png or jpg, but the aesthetic result is subpar. Any idea of when is this going to be restored in keynote? Thanks!

  • How to embed 32 images and a cover letter in an email and then send.

    I write and illustrate picture books. I need to know how to be able to embed an entire book and a cover letter in an email to send out for submissions. What is the best way of compressing the images so they arrive embedded.

    If you have an App which can handle PDFs you can use the Share icon (box with arrow) to create and send an email containing the PDF.

Maybe you are looking for

  • I cannor uninstall to reinstall CS2 - i've tried manually & w/ windows installer cleanup utility....

    i have been using illustrator 10 & CS5 photoshop trial version fine on my windows vista (illustrator for 2 yrs on this computer). i got CS2 so i uninstalled both programs before installing the CS2. after installing i never got a finished window & it

  • How to set the HEADER_SOAP_ACTION?

    When a async response is received from an external system into BPEL, nothing seems to be happening. Ideally this response needs to correlate to the request and complete the BPEL process.. when the debugging is turned on, it mentions that the HEADER_S

  • Need help with AOL

    Please help!!! I just got my new iBook G4 yesterday and can't figure out how to get on the internet. I have dial-up and my ISP is AOL. I am very clueless and tried following the instructions, but it is not working. I put in my info, the computer conn

  • Attributes of tax codes have been updated

    Hi All, One of the users is getting this system message while using the print preview function. It doesn't stop the user from previewing the form, but still I would like to know the cause of this message. He is getting this message on delivery. No su

  • Mail in_reply_to field is Null in Envelope Index

    I am trying to pull some data from the sqlite database Mail uses. However, the in_reply_to field of the messages table is NULL for every value. set databasePath to POSIX path of (path to library folder from user domain as text) & "Mail/V2/MailData/En