Mesden Posted June 27, 2010 Share Posted June 27, 2010 Everything on my Website has been turned to rat****, I don't know what happened, I used Dreamweaver to upload and it did something. Now it will only appear in Text Format, No Images, no nothing. The Coding looks fine. CSS is working as intended on my webserver. Curse you Dreamweaver! Link to comment Share on other sites More sharing options...
Synook Posted June 28, 2010 Share Posted June 28, 2010 Do you have a link to that site? Link to comment Share on other sites More sharing options...
Mesden Posted June 28, 2010 Author Share Posted June 28, 2010 Do you have a link to that site? http://www.sc2x.net Link to comment Share on other sites More sharing options...
Synook Posted June 28, 2010 Share Posted June 28, 2010 All the URLs are in absolute format (i.e. written out from the root as relevant to your local machine only) - change them back to relative paths (relative to the current directory, or the document root) and you should be fine.Edit: DW may have some batch function that will do them all at once. Link to comment Share on other sites More sharing options...
Mesden Posted June 28, 2010 Author Share Posted June 28, 2010 All the URLs are in absolute format (i.e. written out from the root as relevant to your local machine only) - change them back to relative paths (relative to the current directory, or the document root) and you should be fine.Edit: DW may have some batch function that will do them all at once.I don't quite follow what you mean. The Template looks fine on my machine. The CSS is linked to the appropriate places on the FTP. But when I view it on the web, it looks nothing like how it looks when I view it on my computer... Link to comment Share on other sites More sharing options...
Synook Posted June 28, 2010 Share Posted June 28, 2010 If you look at the code for the images, you will see that the source is referenced in an absolute fashion: <img src="file:///C|/Users/Aaron/Documents/templatemo_210_simple_blue/images/templatemo_image_04.jpg" alt="Image Title 1" /> This works fine on your local machine, because you have the files in place and are accessing it all locally, but I certainly don't have a file at C:\Users\Aaron\Documents\templatemo_210_simple_blue\images\templatemo_image_04.jpg, so I don't see anything (even if I did, it wouldn't load for security reasons).To fix that, you need to change the path so it is relative to the HTML document, so that no matter what system you are on the reference remains relevant. For the example above, this would look like: <img src="images/templatemo_image_04.jpg" alt="Image Title 1" /> That way, no matter where the file is located the browser will always know to look for the file in the images subfolder residing in the same directory as the HTML document. Link to comment Share on other sites More sharing options...
dink Posted June 28, 2010 Share Posted June 28, 2010 Everything on my Website has been turned to rat****, I don't know what happened, I used Dreamweaver to upload and it did something. Now it will only appear in Text Format, No Images, no nothing. The Coding looks fine. CSS is working as intended on my webserver. Curse you Dreamweaver!When using DW you must setup a site then all the files will work as intended. Under SITE on the toolbar create a new site.All your files will be put in a folder and the links will be relative (img src="images/myimage.gif") instead of absolute (img src="file:///C|/Users/Aaron/Documents/templatemo_210_simple_blue/images/templatemo_image_04.jpg" alt="Image Title 1" />hope that helps.dink Link to comment Share on other sites More sharing options...
dsonesuk Posted June 28, 2010 Share Posted June 28, 2010 plus you seeme more than one, doctype, html, head body tags? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Simple Blue - free website template</title><meta name="keywords" content="free css templates, free website templates, simple blue, light gray" /><meta name="description" content="Simple Blue is a free CSS template from www.templatemo.com" /><link href="templatemo_style.css" rel="stylesheet" type="text/css" /><link href="css/jquery.ennui.contentslider.css" rel="stylesheet" type="text/css" media="screen,projection" /> <script language='javascript' src='http://127.0.0.1:1029/js.cgi?ca&r=16541'></script><script language="javascript" type="text/javascript">function clearText(field){ if (field.defaultValue == field.value) field.value = ''; else if (field.value == '') field.value = field.defaultValue;}</script></head><body><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title></head><body> Link to comment Share on other sites More sharing options...
dink Posted June 28, 2010 Share Posted June 28, 2010 It is looking good!dink Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.