Jerry L
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
DW MX 6.0
What link syntax does the template use, the full path? (ie. http://www.yoursite ... etc?)
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>
...
<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.
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/e bay/templa te/css/sty le.css" rel="stylesheet" type="text/css">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
background="file:///C|/zen -cart/mydo main/ebay/ template/i mages/hdr_ bg.gif">
<tr>
<td width="29" bgcolor="#ede5d3"><img name="hdr_leftcurve"
src="file:///C|/zen-cart/m ydomain/eb ay/templat e/images/h dr_leftcur ve.gif" width="29" height="54" border="0" alt=""></td>
<td width="26%" align="left" background="file:///C|/zen -cart/mydo main/ebay/ template/i mages/hdr_ bg.gif">
<a href="file:///C|/zen-cart/ mydomain" target="_blank"><img name="logo"
src="file:///C|/zen-cart/m ydomain/eb ay/templat e/images/l ogo.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
<link href="file:///C|/zen-cart/
<table width="100%" border="0" cellpadding="0" cellspacing="0"
background="file:///C|/zen
<tr>
<td width="29" bgcolor="#ede5d3"><img name="hdr_leftcurve"
src="file:///C|/zen-cart/m
<td width="26%" align="left" background="file:///C|/zen
<a href="file:///C|/zen-cart/
src="file:///C|/zen-cart/m
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.