Results 1 to 5 of 5

Thread: code

  1. #1

    Member Since
    Mar 09, 2011
    Unhappy code
    HI, I'm trying to put changing text onto a website created in iWeb. I have created the file as an animation in photoshop, uploaded it to the server and used the following code to place in an html snippet. When I check the published file in a local folder the text does not appear. Do I have to go live before it shows ? Can anyone please advise ? The coded is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <body bgcolor="transparent">
    <!-- Save for Web Slices (Flash.psd) -->
    <img id="BrowserPreview" src="BrowserPreview.png" width="300" height="100" alt="" />
    <!-- End Save for Web Slices -->

  2. #2

    louishen's Avatar
    Member Since
    Oct 22, 2007
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    <img id="BrowserPreview" src="BrowserPreview.png" width="300" height="100" alt="" />
    Where is the PNG file in relation to the html file you created (is it in another folder

    and also you have no </body> tag at the end
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

  3. #3

    Member Since
    Mar 09, 2011
    Smile Code
    The animation file was created as a psd file not png. Do I need to convert to png and if so would the png file be the complete animation ?
    If so do I upload to the media folder on the server ?
    Thanks for your help.

  4. #4

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Early 2015 13" rMBP
    Quote Originally Posted by bolton59 View Post
    <html xmlns="">
    I'm not sure who (or what) suggested that this was a valid namespace. Where did this come from?

    Quote Originally Posted by bolton59 View Post
    <img id="BrowserPreview" src="BrowserPreview.png" width="300" height="100" alt="" />
    The key here is the src attribute. This has to point to a valid image. In this case, you're saying "use BrowserPreview.png which is located in the same directory as this HTML file." So, you need a PNG named "BrowserPreview.png" and it has to be in the same directory. However, you can always change the name and location. Changing the name is easy but the location can be a bit tricky for some to wrap their minds around. Locations are relative to the file being edited. So, if you had that image in a directory called "img", you'd change that src attribute to "img/BrowserPreview.png". Does that help?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5

    Member Since
    Mar 09, 2011
    Hi, This is all a bit over my head... think I'll go to fiverr or elance and get someone to sort it for me.
    Thanks for your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. X code 3.2
    By outlawg13 in forum macOS - Development and Darwin
    Replies: 8
    Last Post: 06-21-2012, 05:19 PM
  2. Error Code -61 help
    By pokeman89 in forum Apple Desktops
    Replies: 4
    Last Post: 11-25-2009, 08:57 PM
  3. the code.
    By eric in forum Schweb's Lounge
    Replies: 12
    Last Post: 04-22-2008, 02:33 PM
  4. Need help with error code
    By HotRodstoHell in forum macOS - Operating System
    Replies: 2
    Last Post: 12-02-2007, 03:16 PM
  5. Replies: 3
    Last Post: 07-02-2004, 09:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts