Link to home
Start Free TrialLog in
Avatar of Jerry L
Jerry LFlag for United States of America

asked on

Dreamweaver: How to View Images Linked to their Source on the Website

I've received a template from my designer.  I view it in Dreamweaver but can't see any of the images because they are all linked to source files on the website.  It looks fine in the browser and I have full control of the website hosting, so that's not the issue.  I don't want to change the code to link to the sources on my harddrive, although that would be one solution.  ( The images aren't product images.  They are the actual form images of the template, logo, tab links, etc. )

DW MX 6.0
Avatar of humeniuk
humeniuk
Flag of Canada image

What link syntax does the template use, the full path?  (ie. http://www.yoursite ... etc?)
Avatar of Jerry L

ASKER

Full path.  Here's an example:

<link href="http://www.mydomain.com/ebay/template/css/style.css" rel="stylesheet" type="text/css">
<table width="100%"  border="0" cellpadding="0" cellspacing="0"  
       background="http://www.mydomain.com/ebay/template/images/hdr_bg.gif">
<tr>
<td width="29" bgcolor="#ede5d3"><img name="hdr_leftcurve"
       src="http://www.mydomain.com/ebay/template/images/hdr_leftcurve.gif" width="29" height="54" border="0" alt=""></td>
<td width="26%" align="left" background="http://www.mydomain.com/ebay/template/images/hdr_bg.gif">
      <a href="http://www.mydomain.com" target="_blank"><img name="logo"
       src="http://www.mydomain.com/ebay/template/images/logo.gif" width="224" height="54" border="0" alt=""></a></td>
...
I don't believe there is a way to get DW to import those images, but I'm not 100% sure.
Avatar of Jerry L

ASKER

So, if I want to re-create the site on my hard drive, I would change everything from the above to the following:

<link href="file:///C|/zen-cart/mydomain/ebay/template/css/style.css" rel="stylesheet" type="text/css">
<table width="100%"  border="0" cellpadding="0" cellspacing="0"
        background="file:///C|/zen-cart/mydomain/ebay/template/images/hdr_bg.gif">
<tr>
<td width="29" bgcolor="#ede5d3"><img name="hdr_leftcurve"
        src="file:///C|/zen-cart/mydomain/ebay/template/images/hdr_leftcurve.gif" width="29" height="54" border="0" alt=""></td>
<td width="26%" align="left" background="file:///C|/zen-cart/mydomain/ebay/template/images/hdr_bg.gif">
        <a href="file:///C|/zen-cart/mydomain" target="_blank"><img name="logo"
        src="file:///C|/zen-cart/mydomain/ebay/template/images/logo.gif" width="224" height="54" border="0" alt=""></a></td>

I tried this and it works.  Note the three slashes before the drive letter and the pipe symbol replaces the colon.

Please refer to the following Experts Exchange articles (PAQ's) for more information:
        https://www.experts-exchange.com/questions/20613340/a-href-'file-C-temp-test-htm'-does-not-work.html
        https://www.experts-exchange.com/questions/20405367/Using-A-HREF-to-launch-local-file-in-new-browser-window.html
ASKER CERTIFIED SOLUTION
Avatar of humeniuk
humeniuk
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial