New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

code


Post Reply New Thread Subscribe

 
Thread Tools
bolton59

 
Member Since: Mar 09, 2011
Posts: 17
bolton59 is on a distinguished road

bolton59 is offline
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.morganbentleyltd.co.uk/media/flash.html">
<head>
<title>flash.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<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 -->
QUOTE Thanks
louishen

 
louishen's Avatar
 
Member Since: Oct 22, 2007
Location: London
Posts: 8,945
louishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant future
Mac Specs: Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver

louishen is offline
Quote:
<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
QUOTE Thanks
bolton59

 
Member Since: Mar 09, 2011
Posts: 17
bolton59 is on a distinguished road

bolton59 is offline
Hi,
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,818
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Quote:
Originally Posted by bolton59 View Post
<html xmlns="http://www.morganbentleyltd.co.uk/media/flash.html">
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
QUOTE Thanks
bolton59

 
Member Since: Mar 09, 2011
Posts: 17
bolton59 is on a distinguished road

bolton59 is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Website search results | Dreamweaver CS5 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Finder won't start laurag OS X - Operating System 5 04-13-2012 05:46 PM
How do I add a tracking code to my iWeb page? Rikki Web Design and Hosting 6 10-08-2010 09:54 PM
Malicious code .... how much of a risk taker are you ? McBie Schweb's Lounge 4 12-13-2008 12:52 PM

All times are GMT -4. The time now is 06:25 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?