Change Massive HTML Help

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Change Massive HTML Help

    I was putting together a website in PHP using Dreamweaver this week. After I
    thought I was done, I checked it online. Turns out all the images are not
    showing up. I know what I did wrong, let me explain:
    I am using PHP Include, this is the code for the main page

    <? if (!$page) $page=allproducts; ?>
    <?php include("header.php"); ?>
    <?php include("allproducts"); ?>
    <?php include("footer.php"); ?>

    Ok, the allproducts part changes when you click on a link, I'm sure you know
    how this works. I put the images inside the maindirectory under the following
    path "images/products/large/image.jpg", "images/products/medium/image.jpg", and
    "images/products/thumbs/image.php"

    In the product files (listed under the maindirectory under the following path
    "products/pet_beds/file.php") I have the image files as "<img
    src="../../images/products/medium/brandy.jpg" width="300" height="188"
    border="0">, I have come to the conclusion by testing it with one image (which
    I should have done to begin with :-\ ) that I need to change all the img src
    tags to the following: <img src="images/products/medium/brandy.jpg" width="300"
    height="188" border="0">.
    Is there an easy way to remove the "../../" from each img src in every file?

    Please please help me. email me at [email]webreality@aol.com[/email] with any help.
    Please.... Thank you so much in advance.:o:confused;

    Webreality.net Guest

  2. Similar Questions and Discussions

    1. Refresh design time HTML on style change
      Hi, in my control I have some properties that are style objects (ex of type TableItemStyle) One example is below: private TableItemStyle...
    2. Which is better, opening and closing, or a massive file opening and a massive closing?
      On Mon, 16 Feb 2004 11:16:54 -0600, wustl.edu (Shiping Wang) wrote: >Hi, >How can I rearrange an array in a specific order based on the order of...
    3. Change relative path to absolute in an HTML file
      I need to download an html file and either use it locally or use it on another host as a mirror page. But the html has many relative path for href...
    4. change attribute in html elements
      How can I change attribute in html elements from my aspx.cs page? For example if I want to change the src-attribute in an iframe. ...
    5. Dynamically change HTML (PARAM) value in VB.NET
      Did you create an HtmlGenericControl in your CodeBehind class that the client-side control could inherit? -- HTH, Kevin Spencer ..Net...
  3. #2

    Default Re: Change Massive HTML Help

    I figured out the solution, thank god for FInd and Replace. I didn't think it
    would work on a partial code, but it did. Take heed in my words, always test
    something before you spend 8 hours on mulitple files. :-D

    Webreality.net Guest

  4. #3

    Default Re: Change Massive HTML Help

    Open each include file and edit it. How hard can that be?

    ALL links in include files should always be root relative to avoid such
    problems, e.g.,

    <a href="/whatever/whatever/foo.html"

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Webreality.net" <webforumsuser@macromedia.com> wrote in message
    news:dba5hp$m5k$1@forums.macromedia.com...
    >I was putting together a website in PHP using Dreamweaver this week. After
    >I
    > thought I was done, I checked it online. Turns out all the images are not
    > showing up. I know what I did wrong, let me explain:
    > I am using PHP Include, this is the code for the main page
    >
    > <? if (!$page) $page=allproducts; ?>
    > <?php include("header.php"); ?>
    > <?php include("allproducts"); ?>
    > <?php include("footer.php"); ?>
    >
    > Ok, the allproducts part changes when you click on a link, I'm sure you
    > know
    > how this works. I put the images inside the maindirectory under the
    > following
    > path "images/products/large/image.jpg",
    > "images/products/medium/image.jpg", and
    > "images/products/thumbs/image.php"
    >
    > In the product files (listed under the maindirectory under the following
    > path
    > "products/pet_beds/file.php") I have the image files as "<img
    > src="../../images/products/medium/brandy.jpg" width="300" height="188"
    > border="0">, I have come to the conclusion by testing it with one image
    > (which
    > I should have done to begin with :-\ ) that I need to change all the img
    > src
    > tags to the following: <img src="images/products/medium/brandy.jpg"
    > width="300"
    > height="188" border="0">.
    > Is there an easy way to remove the "../../" from each img src in every
    > file?
    >
    > Please please help me. email me at [email]webreality@aol.com[/email] with any help.
    > Please.... Thank you so much in advance.:o:confused;
    >

    Murray *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139