replace one banner ad in many pages with target url simultaneousl

M

MMH

How can i replace one banner image that is used in many pages with target url
with another one simultaneously in order to just by one replacement the
banner in all pages changed and all of them have target url too without
hyperlinking them one by one?
 
S

Stefan B Rusynko

Use Search & Replace for the image file name

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| How can i replace one banner image that is used in many pages with target url
| with another one simultaneously in order to just by one replacement the
| banner in all pages changed and all of them have target url too without
| hyperlinking them one by one?
 
T

Thomas A. Rowe

However the image must be the same width and height when using search and replace or if you use the
following simpler method, which is to just name the new image the exact same name as the one to be
replaced.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
R

rfr

I already do a process that allows me to have ONE banner image thaty is used
on all pages within my web and subwebs.

I keep that image in a folder off the ROOT. I can replace it as often as I
want and then move the new version to the server with the right-mouse option
of publishing just that file to tthe server.

Althought I refer to that banner image in CSS as the background-image for a
DIV container, others may use a different method to employ the image.

Following is the coding I use in a typical sub-web header. This one is for
the Dining section. This is a pice of code that I include with INSERT/WEB
COMPONENT/INCLUDE CONTENT/PAGE:
=======================================
<div style="z-index:0;background-image:
url('/hdrnew/header_background_image.jpg'); width:1000px; height:128px;">
<div style="z-index:1;background-image:
url('/hdrnew/dining_1000x128_overlay.png'); width:1000px; height:128px;">
<div style="z-index:3;">
<table style="width:1000px; height:128px;">
<tr>
<td colspan=2 height="98">.</td>
</tr>
<tr>
<td>
<!--webbot bot="Include" U-Include="_std_navbar.htm"
TAG="BODY" --></td>
<td>
<!-- Atomz.com Search HTML for Worthington - People & Places -->
<form method="get" style="display:inline;
margin-left:15px;white-space: nowrap"
action="http://search.atomz.com/search/">

<input size="23" name="sp-q" class="formItem">
<input type="submit" value="Search" class="formItem">
<input type="hidden" name="sp-a" value="sp100219ad">

</form>
</td>
</tr>
</table>
</div>
</div>
</div>
=============================================
The banner that I replace is in the first DIV
'/hdrnew/header_background_image.jpg'.

This has been working even better than I had originally thought it might.

At the moment I am looking for CGI and Chron method to swap that image ( for
instance daily) from one of a number of images in a special folder.

But, even just periodically changing the header background image gives a
fresh look to the community web site. I have been trying to keep the images
seasonally current.
 
D

Darrell

One thing to consider, when changing an image, but recycling the same file
name is that return visitors, to you site, may not see the change.

If, on a previous visit, they cached your old image, then they may continue
to see that old image, instead of your new one, since the filename is the
same.
 
S

Stefan B Rusynko

That won't resize the image if the new one is not the same size as the old one
S&R can also include the whole image tag including the height/width if they change

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| However the image must be the same width and height when using search and replace or if you use the
| following simpler method, which is to just name the new image the exact same name as the one to be
| replaced.
|
| --
| ==============================================
| Thomas A. Rowe
| Microsoft MVP - FrontPage
| http://www.Ecom-Data.com
| ==============================================
|
|
| | > Use Search & Replace for the image file name
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | > | How can i replace one banner image that is used in many pages with target url
| > | with another one simultaneously in order to just by one replacement the
| > | banner in all pages changed and all of them have target url too without
| > | hyperlinking them one by one?
| >
| >
|
|
 
T

Trevor Lawrence

Stefan B Rusynko said:
That won't resize the image if the new one is not the same size as the old
one
S&R can also include the whole image tag including the height/width if
they change

But of course the OP would have to be careful that each image had the same
proportions

If one was 1200 * 900 (4:3) and the image tag specified height="600" width =
'800"(also 4:3), it would look OK.

But if the next image to replace it was 1000 * 800 (5:4), the specification
height="600" width = '800" would distort it

In this case wouldn't it be better to decide on whether to keep the height
the same or the width and just specify one of them ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top