Code to embed image on a page?

I have an image located on my server at the address: http://www.mywebsite.com
I have it inside these folders:
wp-content > themes > mytheme > images > phone.jpg
I am having no luck with the code necessary to embed this graphic on a page. Can anyone help?
Thanks!!!

If I'm reading you correctly, you want to insert an external image into your web page.
On the image properties pane, you can either point to the file in your local site folder (easiest way) or you can type a URL of the actual file location on your remote server.  Be sure to test this in your browser though and don't use images from a domain you don't own.
<img src="http://example.com/wp-content/themes/mytheme/images/phone.jpg" alt="#" height="#" width="#">
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Similar Messages

  • How to embed images in an INX file using script

    Hi All,
    Kindly help me in embedding images in INX file using Indesign Javascript.
    I have used the following code to embed images in an indd document and exporting that document to inx. But the images in inx are not embedded by default.
    var linksCount = myDocument.links.count();
    var linksOnPage = myDocument.links;
    for(var x=0;x<linksCount;x++){
        var linkedItem = linksOnPage.item(0);
        linkedItem.unlink();
    myDocument.save(new File("filename.indd"));
    myDocument.exportFile(ExportFormat.INDESIGN_INTERCHANGE, File("filename.inx"), app.pdfExportPresets.item("[Press Quality]"));
    Thanks in advance,
    Anitha

    Hi
    I think your script has two mistakes
    you embed only first link image in for loop => set x for linksOnPage
    exporting to inx isnot need PDF export preset => remove app.pdfExportPresets.item("[Press Quality]") from exportFile()
    this work for me.
    myDocument = app.documents[0];
    var linksCount = myDocument.links.count();
    var linksOnPage = myDocument.links;
    for(var x=0;x < linksCount;x++){
        var linkedItem = linksOnPage.item(x);
        linkedItem.unlink();
    myDocument.save(new File("filename.indd"));
    myDocument.exportFile(ExportFormat.INDESIGN_INTERCHANGE, File("filename.inx"));
    thank you

  • "embed" image data into java code

    I have a mind that is it possible embed image file into java code?
    That mean an image file information already store in java code, thus no need using the image file in run-time. Then can prevent user change other image file instead.
    Do anyone try before, are there technologies required?
    I just want to know is it possible or not....thanks.

    technologies? The solution you are asking for is all about storing your data in static variables such as byte[][] used to build your image instance. I guess you should have a look at the different constructors of BufferedImage.

  • Can we code to import MIME object(Image)  on bsp page

    hi
    can we code to import MIME object(Image)  on bsp page
    i have one bsp webpage like employee page , in which i have option to attach image so , i want that user attach image and image shuld be go in sap mime object.
    thanks

    Hi,
    save the image into ur system.
    Right click on object name->create->MIME object->import.
    Then select hte image which u want to import and save it.
    Then in the layout write code as
    <html>
    <img height="130" src="image.bmp ">
    </html>
    Regards,
    jaya

  • How I post HTML and Video embed code from my component to landing page?

    Hi there,
    How I post HTML and Video embed code from my component to landing page?
    My Components are developed in NODEJS and PHP.
    Thanks

    Answered here http://topliners.eloqua.com/thread/7944

  • Embed Images using Embed HTML Code

    Is it possible to embed images from a third party into a Captivate 6 file without actually having to download the itself and then import into the project?
    Mike

    You can't.  There is only a very small amount of HTML that flash suports and that's mostly for text formatting.
    See this link for more info:
    http://www.designswan.com/archives/tags-support-in-htmltext-flash-as3.html

  • How do I show multiple rollover images on a page inserted dynamically (pulled out of a sql database

    How do I show multiple rollover images on a page inserted dynamically (pulled out of a sql database table) using Dreamweaver’s Repeat Region. Example: I have different products each one associated (through their productID) with two images (one that’s showing in the page and one for the rollover effect) that are pulled from a database using Dreamweaver’s Recordset. So I want to end up with a page containing row after row of images(one for every product).When moused over each image will reveal the second (rollover) image for the same product which in turn can be a link(the image itself ) that when clicked leads to a detailed page with more information about the product the image is associated with. To show row after row with images for the different products in the database table I am using Dreamweaver’s Insert Rollover Image command and then the  Repeat Region – I have no problem to complete the steps, to insert the image and the rollover one at once and set the paths so they are pulled dynamically depending on the productID they are associated with .I have also no problem to apply the Repeat Region so not only the first image associated with the first product in the table is shown but all of them-a routine and standard procedure when using the Repeat Region to dynamically generate and display multiple rows of data. However, when I preview the page the rollover effect is lost –the images are shown but when moused over the second  image does not  show. The problem is caused when the Repeat Region is applied-once again I am allowed to apply it but the rollover stops working, a kind of interference. ANY SOLLUTION PLEASE, ANY WORK AROUND.

    I gotta tell you, using multiple images for rollover effects is going to be a big challenge in your dynamic scenario. 
    If this were my product page, I would use thumbnails with a bit of CSS opacity or filters to desaturate and make them full opacity/color on mouse over.  Nice effect with much less bandwidth. Easily done globally with CSS code.
    Two examples:
    http://alt-web.com/GALLERY/GalleryTest.php
    http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml
    Nancy O.

  • Embed image into email (not attachments)

    Hi all,
    i need to embed images into an HTML table of an email.
    Can anyone help me, please?
    Sergio

    I have done this in a prior application.. Are you building an html style message?
    I have attached some ideas for you to try:
    define hidden page variable to get the url and location for the images files:
    p19_SERVER_STRING
    Source or expression:
    SELECT owa_util.get_cgi_env('REQUEST_PROTOCOL')||'://'||owa_util.get_cgi_env('HTTP_HOST')||owa_util.get_cgi_env('SCRIPT_NAME')||'/wwv_flow_file_mgr.get_file?p_security_group_id=4398899520272508996&amp;p_fname='
    FROM dual;
    (Security Group is from YOUR application)!!
    Next:
    In a After Submit process assemble the emial message:
    local variable lvMessage VARCHAR2(7500)
    Define message body in html document (Store in local varchar2 variable)
    <body>
    <p>
    <img height="90" hspace="0" src="'|| V('P19_SERVER_STRING')||'srtt_header.png' || '" " width="778" border="0" style="WIDTH: 931px; HEIGHT: 90px">
    </p>
    <p>
    </p>
    <p>
    Send the mseeage after you assemble the required pieces:
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => '[email protected]',
    P_BODY => v_message,
    P_BODY_HTML => v_message,
    P_SUBJ => 'Your email with an Image');
    APEX_MAIL.PUSH_QUEUE;
    Thank you,
    Tony Miller
    Webster, TX

  • Unable to display a PDF image on the page - Mac 10.6

    Hi,
    Running an iMac with 10.6.8 and Indesign 5.0.4. Just wanting to export a PDF as per usual via File > Export function. However, I keep getting the error message, "Unable to display a PDF image on the page'. No idea what this is and have never seen this error before. The only info on the internet reveals error code 0x2511(9489).
    I've deleted prefs, closed down and re-opened Indesign and even restarted the computer. I've also re-linked the images contained in the document and even created a new document and set it up the same, but still the same problem. Investigating further, other Indesign documents still export properly.
    The only ones that don't export are 2 documents, both giving this same error message. Both documents are ones where a client has sent a PDF, I've imported into two of these into an 2-page A4 Indesign document (each PDF is 48MB each) and then just added a text layer (using Times) which is properly installed on the computer. I basically have to 'update' course dates for the client and add PDF to the website, all very basic.
    I've tried importing a jpeg and other PDFs into the file (replacing the existing ones) and they export fine.
    All my software is legal and I've exported this document before now in exactly the same File > Export without any problems (under 10.5 and 10.6).
    OK... I've just imported the offending PDFs into Acrobat, optimized and shrunk the file size, re-imported back to Indesign and the PDF export works fine. So it seems InDesign / PDF Export doesn't like large imported PDFs? I think they were originally exported from Publisher, so maybe that's the problem or a file conflict somehow.
    Any ideas on the culprit? I've googled it, searched these forums and Apple discussions and haven't found anything. Although I've found a workaround, I do get large files to import and then export. Thanks for any help
    Steve

    It does sound like a problem with the original PDF files the client sent you. You can check how they were made in Acrobat Pro from the Additional MetaData button on the Description tab of the document properties dialog. It will be under Advanced at the bottom of the list when the metadata opens.
    You might be able to salvage them by running the optimzer and not changing the size, or just doing a Save As in Acrobat.

  • MIME Multipart/related to embed images in html files - Servlet

    Hello,
    My goal is to embed images in html/xhtml files to decrease latency when using slow networks. Think about mobile phones, if I have 10 images in one page, I will have 11 requests/responses to get the whole page.
    The solution would be to embed all images using Content-type multipart/related, so I have one request to the whole pack.
    How to do that in java? I mean, I need to set the content-type and build all parts encoding the images to base64.
    I tried JavaMail API, there I can build messages like this and instead of send an e-mail, I can write:
    myMimeMultipart.writeTo(response.getOutputStream());
    The problem is: I am getting everything as text in my browser, including the MIME headers of each part. Another think is that the first header (the main one) doesn't appear too.
    Any thoughts/other ideas?
    Thanks in advance,
    Andr� Carlucci

    If memory serves me right, I believe in the Servlet spec you have access to the Response object. You "should" be able to set any headers you need there. In addition, you can get the output streams just as you described.
    I did a similar thing, although slightly modified, to output dynamically-generated XLS (Excel Spreadsheet) files using a reporting engine called JasperReports. It wasn't a multipart response, however, so you may need to figure out how to handle that part of it, but in my case I set the mime-type header, then grabbed the output and started writing my XLS file too it. Once done, you close the streams and return the response. Worked perfect.

  • Carousel don't show images, only the page name and a "read more" link

    Good morning.
      I'm trying to get a carousel in my page. I already set a image to one page and on my carousel component, I selected that page.
      When I see the carousel, it shows me the page inputed name and a "read more" link instead of the image.
      Can anyone tell me what's wrong or missed?
      Heres a print screen:
    Thanks.

    What did I do to correct this problem:
       When I create a page renderer component, the same automatically creates a jsp file, with the same name as the component. In my Geometrixx copy sites, there's always a "content.jsp" file in the components, despite of the one with the same name of the component. So, instead of build my pages in the componentname.jsp, i'm doing this is these content.jsp. Just doing this, the carroussel works perfectly. For sure is something that I miss in my own jsp files, but even with the same code (copy > paste), in my jsp the carroussel don't work. Anyway, now I can use it.

  • IPad Safari doesn't always load all images on a page.

    On sites such as boston.com's 'the big picture' (http://www.boston.com/bigpicture/) that have a lot of images, the ipad just doesn't seem to load all of the images.
    My iPhone 3G does the same thing - though with different images. It's not a site-side thing, the code is fine (debug console doesn't show any relevant errors)
    Is it that the hardware just can't display more than a few high-res images in one page properly?

    TwistedPenguin wrote:
    It's obviously a problem specific to just your iPads (or a select few) or maybe your routers or a combination of those things. Because I've never had any sort of problem like that and I load graphic heavy sites non-stop on my iPad. My wifi is only 1.5 Mbps, too, and I just bet that's at least 10 times slower than any of yours. All I'm saying is don't be so quick to blame Apple as it may be something you haven't thought of.
    Sorry, but you are wrong there. It is an iPad issue that has been discussed here several times before.
    There is some kind of memory restriction.
    Can you load all the images on conradp04's site mentioned above? I guarantee you can't!

  • Trying to embed images from my iWeb site

    Sorry if this has been asked before but I did a search and could not find any answers.
    I upgraded from iLife 06 to 08 and managed to get a seamless transition of my iWeb site. The only problem now is that I seem unable to embed images from my site into other web pages on other sites. It used to be a case of copying and pasting the image address into the other web page. Now however it comes up with a very different looking image address that no longer ends with .jpg(jpeg) I have tried adding the .jpg to the end of the address without any success. Am I simply missing the obvious or is this feature no longer available?
    Thanks for any help

    Disable slideshow or not won't effect the way javascript render photos page images into canvas and anchor links.
    But, You can:
    1) get Safari 3.1.1, and turn on Develop menu. Safari -> Preferences... -> Advanced -> Show Develop menu in menu bar (bottom item). This allows you to see all the elements in the page.
    2) get Firefox, FF has DOM Inspector and Page Info.
    With the above, you will have to wade thru the info and fish out the links. or,
    3) using script to do the heavy lifting (scripting is your friends), there two free scripting languages: AppleScript and JavaScript in every mac.
    Combine the two and with understanding of iweb and DOM and you have the ultimate tools for iweb developing, here is the result of your first three links (I have all of them, but just post three here):
    http://web.mac.com/paullloydroach/Site/Landscapes2files/Media/morc1b%26w.jpg?derivative=web
    http://web.mac.com/paullloydroach/Site/Landscapes2_files/Media/mk26-2_0_22tonemapped.jpg?derivative=web
    http://web.mac.com/paullloydroach/Site/Landscapes2files/Media/Morecambe1.jpg?derivative=web

  • Display image on jsp page

    I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database.
    First problem is that image will be taking time to display in comparision of other outouts from database. I have to refresh the page to get imageon my page.
    Second is that if I save image in a folder parallel to web-inf in my project then it will not be displaying the image.
    Can I use any jsp functionality to display image with other outputs from database. I have used "*include*". but it shows only that image and other outputs.

    Best way is to use a servlet for this.
    <img src="path/to/imageservlet?id=someidentifier">
    <!-- or -->
    <img src="path/to/imageservlet/someidentifier">In the servlet's doGet() just write code which gets an InputStream of the image (either directly generated, or just read from the local disk file system, if necessary with help of ServletContext#getRealPath(), or even from the DB by ResultSet#getBinaryStream()) and writes it to the OutputStream of the response. That's basically all. Don't forget to buffer the streams properly to speedup performance and to save memory.
    You can find here a basic example: [http://balusc.blogspot.com/2007/04/imageservlet.html].

  • Problem in displaying image on jsp page

    I want to display an image on jsp page.I copied the image the image in WebContent folder.
    I am able to see the image on the design pane when using the following code:-
    <img src="/image.gif" height="50" width="50"> but when i run it in the browser nothing gets diplsyed.
    also when i use the image container and select the source option that image is not displayed in the WebContents file..plz help.

    Hi,
    Seems that the Problem is there with the way how you specifuied the Image relative Path:
    You have specified the below: The opath of image starts with (/) forward slash:
    *<img src="/image.gif" height="50" width="50">*
    It means to access this Image WebLogic Container will form a Path like this:
    http://localhost:7001/image.gif
    BUT may be the image is available inside your Context root: So Change the <Img> tag like following in your JSP:
    *<img src="image.gif" height="50" width="50">*
    (*NOTE:* Never Start your src path with a Preceesing /)
    Now WLE will consider the path like below ..if your Applications Context root is "TestApp"
    http://localhost:7001/TestApp/image.gif
    I am Assuming that Inside the TestApp Application "image.gif" And "your.jsp" jSP pages are Co-Located (Means available in the Same Directory).
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Magical Stuff)

Maybe you are looking for