Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2005, 06:09 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't Up load to local host one image

Hi All

Hope someone can clear up this small issue which has me flummoxed.

I am making up a screen and I can not upload one image. I made the image in adobe and saved it as Jpg. I can view it in Dreamweaver. I then altered the size in Fireworks to match the images beside it.

Code attached

Does Dreamweaver automatically adjust the resolution?

Hoping that there is a simple mistake that I am making.

All the best
Jacky Kenna

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<!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>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<style type="text/css">
<!--
body {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 0px;
}
.style1 {color: #000000}
-->
</style></head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="col"><img src="../Images/Raleigh_logo.jpg" width="196" height="202" /></th>
    <td><div align="center"><img src="/Images/MainHeading/SouthWestMapLogo.png" name="LogoMap" width="471" height="200" class="style1" id="LogoMap" /></div></td>
    <th scope="col"><img src="../Images/MainHeading/SBOX_CforLogo.png" width="216" height="200" /></th>
  </tr>
</table>


</body>
</html>

 
Old July 19th, 2005, 08:25 AM
Authorized User
 
Join Date: May 2005
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try changing:
 <td><div align="center"><img src="/Images/MainHeading/SouthWestMapLogo.png" name="LogoMap" width="471" height="200"

to:

 <td><div align="center"><img src="../Images/MainHeading/SouthWestMapLogo.png" name="LogoMap" width="471" height="200"

Chris

 
Old July 26th, 2005, 08:51 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Chris

Sorry I did not say thanks earlier. My E-mail was down. I worked out the .. myself. Is it just my copy or is Dreamweaver not able to enter the required code for images in sub directories? This also happens to me when I have templates which include images.

I am doing a website for my son who plans a 630 mile charity walk. I had one template showing the route with images poppoing up as the mouse moved alomg the walk. I seem not to be able to use this as a template.

This wopuld not be such a problem if it were not a template as I couild enter the .. but the template is locked!!!

I am popping the code below if you have a suggestion.

All the Best
and thanks for your assistance.

Jacky

 
Old July 26th, 2005, 08:52 AM
Authorized User
 
Join Date: Apr 2005
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Forgot the code

<!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>

<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #ccffff;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>

<link href="/Style%20Sheets/mrnsStyles.css" rel="stylesheet" type="text/css" />
</head>

<body onload="MM_showHideLayers('Mevagassie','','show')" >
 <div id="MineheadHarbour" style="position:absolute; left:500px; top:94px; width:242px; height:251px; z-index:1; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/Mineheadharbour0.jpg" width="320" height="240" /></div>
</div>
 <div id="Ilfracombe" style="position:absolute; left:499px; top:96px; width:276px; height:180px; z-index:2; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/ilfracombe0.jpg" width="320" height="195" /></div>
</div>

 <div id="HartlandPoint" style="position:absolute; left:500px; top:96px; width:193px; height:243px; z-index:3; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/hartlandpoint030.jpg" width="320" height="212" /></div>
</div>
 <div id="Bude" style="position:absolute; left:499px; top:92px; width:318px; height:116px; z-index:4; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/bude0.jpg" width="320" height="255" /></div>
</div>
 <div id="padstow" style="position:absolute; left:500px; top:93px; width:127px; height:170px; z-index:5; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/Padstow0.jpg" width="320" height="238" /></div>
</div>
 <div id="Newquay" style="position:absolute; left:499px; top:95px; width:143px; height:87px; z-index:6; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/newquay_babes0.jpg" width="320" height="205" /></div>
</div>
 <div id="Perranporth" style="position:absolute; left:499px; top:95px; width:122px; height:114px; z-index:7; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/Perranporth0.jpg" width="320" height="240" /></div>
</div>
 <div id="StIvesCarnival" style="position:absolute; left:498px; top:96px; width:124px; height:173px; z-index:8; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/StIvesCarnival20050.jpg" width="320" height="240" /></div>
</div>
 <div id="LandsEnd" style="position:absolute; left:514px; top:161px; width:188px; height:192px; z-index:9; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/lands_end_air0.jpg" width="320" height="213" /></div>
 </div>
 <div id="Coverack" style="position:absolute; left:498px; top:95px; width:299px; height:170px; z-index:10; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/coverack1049950.jpg" width="320" height="240" /></div>
</div>
 <div id="Lizzard" style="position:absolute; left:499px; top:95px; width:126px; height:141px; z-index:11; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/lizard_point0.jpg" width="320" height="226" /></div>
</div>
 <div id="FalmouthHarbour" style="position:absolute; left:499px; top:94px; width:230px; height:144px; z-index:12; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/FalmouthHarbor0.jpg" width="320" height="212" /></div>
</div>
 <div id="EastLooe" style="position:absolute; left:499px; top:95px; width:192px; height:152px; z-index:14; visibility: hidden;">
 <img src="/Images/ScenicImages/Thumbs/looe-river0.jpg" width="320" height="210" /></div>
 <div id="StartPoint" style="position:absolute; left:497px; top:95px; width:164px; height:123px; z-index:15; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/StartPointRamehead0.jpg" width="300" height="225" /></div>
</div>
 <div id="Torquay" style="position:absolute; left:499px; top:95px; width:155px; height:140px; z-index:16; visibility: hidden;" onclick="MM_showHideLayers('Torquay','','show')">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/Torquay.jpg" width="320" height="231" /></div>
</div>
 <div id="LymeRegis" style="position:absolute; left:499px; top:95px; width:166px; height:174px; z-index:17; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/LymeRegis0.jpg" width="320" height="240" /></div>
</div>
 <div id="WeymouthBay" style="position:absolute; left:499px; top:96px; width:133px; height:124px; z-index:18; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/WeymouthBay.jpg" width="320" height="240" /></div>
</div>
 <div id="PoolHarbourAir" style="position:absolute; left:499px; top:95px; width:213px; height:169px; z-index:19; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/Poole0.jpg" width="320" height="242" /></div>
</div>
 <div id="Mevagissey" style="position:absolute; left:499px; top:96px; width:175px; height:180px; z-index:20; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/Mevagissey0.jpg" width="300" height="225" /></div>
</div>
 <div id="MinackTheater" style="position:absolute; left:498px; top:94px; width:141px; height:129px; z-index:21; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/minack0.jpg" width="320" height="187" /></div>
</div>
 <div id="DrakesIslandPlymouth" style="position:absolute; left:500px; top:93px; width:242px; height:268px; z-index:22; visibility: hidden;">
   <div align="center"><img src="/Images/ScenicImages/Thumbs/DrakesIslandPlymouthBay.jpg" width="320" height="240" /></div>
</div>
 <div id="Introduction" style="position:absolute; left:553px; top:111px; width:308px; height:246px; z-index:23; visibility: visible;" onclick="MM_showHideLayers('MineheadHarbour','','s how')">
   <p class="labelCentrelargerBlue">&nbsp;</p>
   <p class="labelCentrelargerBlue">For information about the route and the towns on the way. Move your mouse along the red line. </p>
   <p class="labelCentrelargerBlue">For More detailed information click. </p>
</div>
 <div id="LizzardMistyMorning" style="position:absolute; left:501px; top:93px; width:269px; height:247px; z-index:24; visibility: hidden;"><img src="/Images/ScenicImages/Thumbs/normalMistyatLizardpointlifeboathouse0.jpg" width="320" height="240" /></div>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
     <th width="24" scope="col">&nbsp;</th>
     <th width="937" scope="col"><img src="/Images/Title-words.png" width="701" height="72" /></th>
     <th width="22" scope="col">&nbsp;</th>
   </tr>
   <tr>
     <td>&nbsp;</td>
     <td>
<link href="/Style%20Sheets/mrnsStyles.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#DBF2F8">
  <tr>
    <td width="24" scope="col">&nbsp;</td>
    <td scope="col"><a href="/index.html">Home</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="/Screens/WalkSwcw.htm">Walk</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="/Screens/Sponsorship.asp">Sponsorship</a></td>
    <td>&nbsp;</td>
    <td><a href="/Screens/WhyRaleigh.htm">Why Raleigh International</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="/Screens/Why%20Chille.htm">Why Chille</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="/Screens/WhyShelterBox.htm">Why Shelter Box</a></td>
    <td>&nbsp;</td>
    <td scope="col"><a href="/Screens/AboutMe.htm">About me </a></td>
    <td width="24" scope="col">&nbsp;</td>
  </tr>
</table>
</td>
     <td>&nbsp;</td>

   </tr>
   <tr>
     <td>&nbsp;</td>
     <td><img src="/Images/SouthWestMapComplete.gif" width="489" height="247" border="0" usemap="#Map" />
       <map name="Map" id="Map">
         <area shape="rect" coords="235,26,299,55" href="#" onmouseover="MM_showHideLayers('MineheadHarbour',' ','show','Introduction','','hide');MM_showHideLaye rs('Introduction','','hide')" onmouseout="MM_showHideLayers('MineheadHarbour','' ,'hide','Introduction','','show')" />
         <area shape="rect" coords="149,31,232,64" href="#" onmouseover="MM_showHideLayers('Ilfracombe','','sh ow','Introduction','','hide')" onmouseout="MM_showHideLayers('Ilfracombe','','hid e','Introduction','','show')" />
         <area shape="rect" coords="106,64,191,94" href="#" onmouseover="MM_showHideLayers('HartlandPoint','', 'show','Introduction','','hide')" onmouseout="MM_showHideLayers('HartlandPoint','',' hide','Introduction','','show')"/>
         <area shape="rect" coords="95,93,157,126" href="#" onmouseover="MM_showHideLayers('MineheadHarbour',' ','hide','Bude','','show','Introduction','','hide' )" onmouseout="MM_showHideLayers('Bude','','hide','In troduction','','show')"/>
         <area shape="rect" coords="54,125,141,158" href="#" onmouseover="MM_showHideLayers('padstow','','show' ,'Introduction','','hide')" onmouseout="MM_showHideLayers('padstow','','hide', 'Introduction','','show')"/>
         <area shape="rect" coords="19,156,103,175" href="#" onmouseover="MM_showHideLayers('Newquay','','show' ,'Introduction','','hide')" onmouseout="MM_showHideLayers('Newquay','','hide', 'Introduction','','show')"/>
         <area shape="rect" coords="-1,174,88,189" href="#" onmouseover="MM_showHideLayers('Perranporth','','s how','Introduction','','hide')" onmouseout="MM_showHideLayers('Perranporth','','hi de','Introduction','','show')"/>
         <area shape="rect" coords="3,190,73,207" href="#" onmouseover="MM_showHideLayers('StIvesCarnival','' ,'show','Introduction','','hide')" onmouseout="MM_showHideLayers('StIvesCarnival','', 'hide','Introduction','','show')"/>
         <area shape="rect" coords="3,208,37,236" href="#" onmouseover="MM_showHideLayers('LandsEnd','','show ','Introduction','','hide')" onmouseout="MM_showHideLayers('LandsEnd','','hide' ,'Introduction','','show')"/>
         <area shape="poly" coords="74,237,69,242,80,242,166,244,164,232,114,2 36,89,236" href="#" onmouseover="MM_showHideLayers('Lizzard','','show' ,'Introduction','','hide')" onmouseout="MM_showHideLayers('Lizzard','','hide', 'Introduction','','show')" />
         <area shape="poly" coords="78,223,85,198,94,208,121,212,154,217,152,2 23" href="#" onmouseover="MM_showHideLayers('FalmouthHarbour',' ','show','Introduction','','hide')" onmouseout="MM_showHideLayers('FalmouthHarbour','' ,'hide','Introduction','','show')" />
         <area shape="poly" coords="89,198,119,197,176,201,156,216,114,209,96, 206" href="#" onmouseover="MM_showHideLayers('Mevagissey','','sh ow','Introduction','','hide')" onmouseout="MM_showHideLayers('Mevagissey','','hid e','Introduction','','show')" />
         <area shape="poly" coords="109,193,122,175,147,175,158,188,159,195" href="#" onmouseover="MM_showHideLayers('EastLooe','','show ','Introduction','','hide')" onmouseout="MM_showHideLayers('EastLooe','','hide' ,'Introduction','','show')"/>
         <area shape="poly" coords="149,167,222,172,187,189,159,190" href="#" />
         <area shape="rect" coords="208,198,294,229" href="#" onmouseover="MM_showHideLayers('StartPoint','','sh ow','Introduction','','hide')"onmouseout="MM_showH ideLayers('StartPoint','','hide','Introduction','' ,'show')" />
         <area shape="rect" coords="234,161,304,191" href="#" onmouseover="MM_showHideLayers('Torquay','','show' ,'Introduction','','hide')" onmouseout="MM_showHideLayers('Torquay','','hide', 'Introduction','','show')"/>
         <area shape="poly" coords="230,152,256,134,308,118,248,159,241,149" href="#" onmouseover="MM_showHideLayers('LymeRegis','','sho w','Introduction','','hide')"onmouseout="MM_showHi deLayers('LymeRegis','','hide','Introduction','',' show')" />
         <area shape="rect" coords="325,133,382,159" href="#" onmouseover="MM_showHideLayers('WeymouthBay','','s how','Introduction','','hide')" onmouseout="MM_showHideLayers('WeymouthBay','','hi de','Introduction','','show')" />
         <area shape="poly" coords="390,148,394,134,402,117,435,128,448,144" href="#" onmouseover="MM_showHideLayers('PoolHarbourAir','' ,'show','Introduction','','hide')" onmouseout="MM_showHideLayers('PoolHarbourAir','', 'hide','Introduction','','show')" />
         <area shape="poly" coords="406,131" href="#" onmouseover="MM_showHideLayers('PoolHarbourAir','' ,'show')" onmouseout="MM_showHideLayers('PoolHarbourAir','', 'hide')" />
         <area shape="poly" coords="79,221,78,234,99,234,146,232,144,222,116,2 26" href="#" onmouseover="MM_showHideLayers('MineheadHarbour',' ','hide','Coverack','','show','Introduction','','h ide')" onmouseout="MM_showHideLayers('Coverack','','hide' ,'Introduction','','show')" />
         <area shape="poly" coords="50,211,37,211,34,225,45,225,48,220,55,221, 54,210,55,215,51,212,48,221" href="#" onmouseover="MM_showHideLayers('MinackTheater','', 'show','Introduction','','hide')" onmouseout="MM_showHideLayers('MinackTheater','',' hide','Introduction','','show')" />
         <area shape="rect" coords="59,216,70,233" href="#" onmouseover="MM_showHideLayers('Introduction','',' hide','LizzardMistyMorning','','show')" onmouseout="MM_showHideLayers('Introduction','','s how','LizzardMistyMorning','','hide')" />
       </map>
</td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
   </tr>
   <tr>
     <td height="300">&nbsp;</td>
     <td height="80" align="left" valign="top"><div align="left">
       <table width="100%" border="2" align="left" cellpadding="2" cellspacing="2">
         <tr>
           <td width="65%" scope="col">
<p><img src="/Images/ScenicImages/LargeSize/Mineheadharbour0.jpg" width="700" height="525" /></p>
<p>&nbsp;</p>
</td>
           <td width="65%" scope="col">Some info on this town t</td>
         </tr>
       </table>
     </div></td>
     <td>&nbsp;</td>
   </tr>
</table>

    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#DBF2F8">
       <tr>
               <td width="24">&nbsp;</td>
                <td class="labelLeft">&copy; All rights Reserved 2005 </td>
                <td><a href="/Screens/AboutMe.htm" id="aboutUs">About Me </a></td>
                <td><a href="/Screens/Sponsorship.asp" id="sales">Sponsorship</a></td>
                    <td>&nbsp;</td>
                <td><a href="/publicScreens/copyScreens/contact.php" id="contact">Contact Me </a></td>
                <td><a href="/sitePlan.php">Site Plan</a></td>
            <td width="24">&nbsp;</td>

                      <br />
        <script language="JavaScript" type="text/javascript">
               var sPageName = '<%=Request.ServerVariables("SCRIPT_NAME")%>';
            sPageName = sPageName.substr(sPageName.lastIndexOf('/') + 1) .toLowercase();
            sPageName = sPageName.substr (0, sPageName.lastIndexOf('.'));
               if (document.getElementById(sPageName))
            {
            document.getElementById(sPageName) .style.fontWeight = 'Bold';
            document.getElementById(sPageName) .style.fontSize = '14pt';
            }
        </script>
       </tr>
    </table></body>
</html>


 
Old July 26th, 2005, 12:09 PM
Authorized User
 
Join Date: May 2005
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A couple ways to get around it - you could go into the 'modify' drop-down and detach the page from the template - or you could open it with notepad and make the required changes. Do you have the main template-because if you do you can make the changes on the template file and not have to worry about it.

Chris






Similar Threads
Thread Thread Starter Forum Replies Last Post
aspx site works local, but not on FTP host(?) zuz29 ASP.NET 1.0 and 1.1 Basics 1 June 2nd, 2006 08:27 AM
Local Host Problem arimakidd Classic ASP Professional 1 November 23rd, 2005 05:23 AM
mysql local host address darith Beginning PHP 1 April 27th, 2005 07:51 PM
local host denied pseudo class Beginning PHP 6 October 19th, 2004 05:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.