Create Placeholder for Rotating Image Link

Hello,
The other day I created some rotating banner ads on my site thanks to the fantastic help I received on this forum.
Once thing I notice on my site is that when the banner ads switch the spacing on the page shifts so that the text/jpgs that are below the ads bounces around.
I was wondering if anyone knows a way that I can create a placeholder to contain the banner ads so that the other content would stay put?
Thank you so much for any help that you can provide.
Glenn
My website is - www.glennbartley.com
The code I inserted is:
<a id="bannerid" href="photoworkshops/Workshops/Manitoba-Churchill.htm"><img src="naturephotography/Banner Ads/BannerAdd-Churchill2014.jpg" /></a>
<script language="JavaScript">
<!--
function random_imglink(){
var myimages=new Array()
var mylinks=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="naturephotography/Banner Ads/BannerAdd-Churchill2014.gif"
mylinks[1]="photoworkshops/Workshops/Manitoba-Churchill.htm"
myimages[2]="naturephotography/Banner Ads/BannerAdd-CostaRica2014.gif"
mylinks[2]="photoworkshops/Workshops/CostaRica.html"
myimages[3]="naturephotography/Banner Ads/BannerAdd-GearGuide.gif"
mylinks[3]="naturephotography/articles/gear.htm"
myimages[4]="naturephotography/Banner Ads/BannerAdd-Books.gif"
mylinks[4]="purchase.htm"
myimages[5]="naturephotography/Banner Ads/BannerAdd-Ebooks.gif"
mylinks[5]="http://www.theguidetotropicalnaturephotography.com/index.html"
myimages[6]="naturephotography/Banner Ads/BannerAdd-Ecuador2014.gif"
mylinks[6]="http://www.glennbartley.com/photoworkshops/Workshops/Ecuador.htm"
myimages[7]="naturephotography/Banner Ads/BannerAdd-FeatureGallery.gif"
mylinks[7]="http://www.glennbartley.com/naturephotography/articles/Gallery%20-%20AllTimeFavourites.htm l"
myimages[8]="naturephotography/Banner Ads/BannerAdd-Peru2014.gif"
mylinks[8]="photoworkshops/Workshops/Peru.html"
myimages[9]="naturephotography/Banner Ads/BannerAdd-VanIsl2014.gif"
mylinks[9]="http://www.glennbartley.com/photoworkshops/Workshops/VancouverIsland.htm"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.getElementById('bannerid').innerHTML='<img src="'+myimages[ry]+'">';
document.getElementById('bannerid').href= mylinks[ry];
var imageloop=setInterval(function(){random_imglink()},5500);
//-->
</script>

The anti-right click script you have is useless. If someone can see your images in their browser, they are already downloaded to their computer. Taking away the right click function will not stop them from taking the images if they are so inclined and it is supremely annoying. If you want to protect your photos, use a watermark that is difficult to remove from the image instead.
You have some errors in your code that are being caused by having things out of place. Run your page through the validator at http://validator.w3.org so you can clean those up.
As for the shifting issue, that is being caused by the container of the images going empty for a moment and shrinking it's height. Set the height of that container in the css to an appropriate number and it should stop.
Something like...
#bannerid {
     height:50px;
Set it to whatever the height of the banners is and it should fix the problem.

Similar Messages

  • Has anyone received this error, "Failed to create directory for PX images"

    I recently migrated to Windows7.  98% of the migration went well. All of my pictures and Elements Catalog came over fine.  I had to "reconnect" all of the pictures in the catalog due to new directory name, but it worked fairly well.  Of the 11,000 entries synch'd with photoshop.com, 10,500 re-synch'd fine. However almost 500 are stuck with an error of "Failed to create directory for PX images".  Can anyone help with how to resolve this issue?  Note, I did try to remove the picture from the album and then re-add, but that didn't work.
    Thank you in advance for any help you can provide.
    Thanks,
    Jeff

    function(){return A.apply(null,[this].concat($A(arguments)))}
    JeffAGoldberg wrote:
    Erased everything on photoshop.com (which I couldn't accomplish due to bugs on photoshop.com) and created a new catalog.
    Jeff
    What problems are you facing in deleting files from PS.com. Are you able to maintain a proper synced catalog now ? If possible please elaborate so that we can help.

  • Create hyperlink for all images

    Hello everyone,
    I am new to scripting, but I am assuming my current task needs some scripting.
    I have a catalog laid out in InDesign.  It is about 250 pages and each page has about 10 image so there are about 2500 images.  The way I have them laid out is each image is placed inside a frame.  Now, I need to hyperlink each image to an external web site.  For example, for an image whose name is (12345.jpg), the hyperlink will be "https://www.testabc.com/productdetails.aspx?itemnum=12345".  Similarly if the next item is 67890, then the hyperlink would need to be "https://www.testabc.com/productdetails.aspx?itemnum=67890".  All images are linked to a folder on the computer.
    Can you please suggest how best to write and run this script.  Any and all help would be greatly appreciated.
    Thank you

    I can't test the script at the moment, but looking at it, I do notice that the entire for loop is within a try-catch. That means that if it encounters an error, it stops processing any more graphics. There may be a good reason for this, but I think you could just move the try-catch into the for loop, so it can catch any individual linking error without stopping completely. Something like this:
    var myDoc = app.activeDocument; 
    var  myGr = app.activeDocument.allGraphics; 
    alert(myGr.length) 
        for(i=0; i<myGr.length; i++) 
          try{
            var myGrName = String(myGr[i].itemLink.name); 
            var mySplitName = myGrName.split(".")[0]; 
            app.select(myGr[i].parent) 
            myHyperlinkPageItemSource =  app.activeDocument.hyperlinkPageItemSources.add(app.selection[0]) 
            var myHyperlinkURLDestination = app.activeDocument.hyperlinkURLDestinations.add("https://www.testabc.com/productdetails.aspx?itemnum=" + String(mySplitName)));
            var myHyperlink = app.activeDocument.hyperlinks.add(myHyperlinkPageItemSource, myHyperlinkURLDestination, {name: "https://www.testabc.com/productdetails.aspx?itemnum=" + String(mySplitName)})   
            } catch(e){} 
    alert("Process Completed")
    The forum's syntax highlighting is giving me a hard time, but I would probably throw an "alert(myGrName)" into those catch brackets so you can begin to try to figure out where it's erroring out (if that is indeed the problem).
    Another thought is that, if there's a chance of multiple images with the same number, you might want to have your hyperlinkURLDestination check for an already existing destination before adding a new one.

  • Create Snapshot for Multiple Images

    How would you like the feature to work?:
    To have the ability to select more than one photo and create a snapshot that would apply to all selected images.
    Why is this feature important to you?:
    When using Sync.. to synchronize work such as spot removal on several similar images (such as bracketed exposures), it would be a great time saver to be able to select these several images and create the snapshot to apply to all of them at once... For example, this would be a benefit when removing dust spots. It would just save time.

    Hello Bud,
    See below In answer to your question for clarification of my new feature request in September or 2009.
    The dynamic implementation of Lightroom has its upside and its downside. Its upside is that through the ability to reset edits and virtual copies, and create snapshots of edited images it is not necessary to do multiple saves to recover different editing effects. The downside is that if snapshots are not created before new edits are made on photos or photo sets it is time consuming and sometimes difficult recreate an exact set of previous edits.
    I am a travel and event photographer. I normally edit large final sets (50 to 200 images) out of a shoot that may have thousands of images. Normally I do not do a final snapshot of each image until the entire set is edited. This is because on final review of the set I will frequently tweek individual images to bring them into balance with the set. When I am done with the full set I must return to each image and creat a snapshot that I title "Final Edit dd/mm/yyyy" Then if I return in the future and intentionally or unintentionally make a change to one of the images I do not lose the set edits.
    It is time consuming to go back through the full set and make a snapshot of each image in the set and sometimes I forget or simply run out of time and never get back. For this reason It would be very valuable to select the entire set and click on snapshot, create the snapshot name indicated above or some creative set ID and automatically create a snapshot preserving the individual edits of each of the selected images with the same snapshot name.
    Another benefit of this feature is that if the images in a set Included images from multiple directories and were not in a collection  they could all be located by their snapshot name.
    I believe that if this feature was implemented it would be used by many if not all professional photographers that use Lightroom to do the majority of their editing.
    Jim

  • Create snapshots for many images?

    After I have completed editing on a batch of photos, I would like to create a snapshot for each selected photo. If I just create a snapshot, one is created only for the current photo, not for all others. Is there a way to create a snapshot for every selected photo?

    I edit a few hundred photos from a shoot. I will now release them to one person in that form. Then I will further work on some for artistic development, probably with some further work in LR and then on to PS CS3. I want in some way to "mark" the ones I have released so I can get back to the released form of an individual image if needed. I'd prefer to do that at the first release stage rather than having to remember to take a snapshot before doing any further work--as I might forget to do that. I thought a snapshot was the way to do that.

  • Creating Thumbnails for web page links to larger images.

    I want to create thumbnail images for linking to web page linking to enlargements. I'm using PhotoShop Elements 2.0 on a Dell 2400, XP Home Edition with 512mb RAM and 35gb storage available.
    The language I read in help sections doesn't addressed the issue I want help with. I believe it addresses saving thumbnails for Windows and Mac using .tiff or .psd format, not the .jpg or .gif I need. It seemed like there should be a way to change the thumbnail format. Any suggestions would be appreciated.

    Hi Ted,
    You can use the ' Web Photo gallery ' as Jodi suggested for a large
    number of images or,
    Open your image, click the bar at the top of the displayed image &
    reset the size to what you want, then 'File', 'Save for Web' & save as
    .jpg or .gif. .jpg gives more options for reducing file size so that
    is what I use. Close the image without saving
    HTH,
    Alex,

  • Created duplicates of rotated images

    Hi
    I have just imported a large iPhoto library into Aperture 2 which has created two masters of any image which at some point in iPhoto had been rotated. So now in Aperture a large percentage of my images have two versions - a portrait and a landscape. Can I quickly delete the master which is the wrong orientation? I really hope so!!

    Yeah I wish they'd warn you about that.
    When you rotate an image in iPhoto it copies that image into the modified folder and keeps the original in the originals folder. (Just in case in a bizarre moment of vertigo you decided to rotate it back) Aperture then, as you've just discovered, kindly imports both thus giving you the mild headache that you'r having.
    The nice thing is that Aperture appended different metadata to each image. The original unrotated images are tagged +iPhoto originals+ and the are tagged +iPhoto modified+
    If you create a smart album of all images with keywords 'iphoto original'.
    And then sort that smart album by orientation
    You should be able to weed out the sideways ones.
    Post back with your results.
    M.

  • Newb Question: Creating overlays for an image

    I'm new to flash and am stuck on a project I'm working. Any
    help would be greatly appreciated.
    Essentially I'm trying to create a webpage with an image of a
    piece of furniture on one side of the page. On the other side
    I'm trying to create some digital swatches to represent a
    type of material that part of the furniture can have as an option.
    What I'd like to do is set it up so that people can click on
    the digital swatch and have the furniture image change so that
    they can see what it would look like with that option.
    Thanks in advance for any assistance.

    Hi ,
    I am working on IndesignCS2 as a third party developer . I have overrided Drag-Drop functionality ( while working with
    Document ) in my plugin. The problem is now I want to apply same functionality to Master Document with slight differece .
    Can you tell me how to identify Master page programatically ,So that I can differentiate these both cases programatically .
    I'll be greatful to you if you could help me.
    Thank You.
    Regards
    Vijay Choudhari

  • Create buttons for Rotate,  Zoom, and Pan in a 3dscene

    Hi,
    I am designing a 3dpdf  and my client wants to play it in a touchscreen monitor.
    The problem comes about rotate, zoom, and Pan inside the 3d scene. As this function are activated by mouse left and right button I need to create some buttons to make these functions available.
    I have put this post at Rich Media & 3D >   Discussions Zoom and Pan
    Here the link http://forums.adobe.com/message/4557451#4557451
    Dave Merchant suggested me to bring the question to this forum.
    Can anybody help me on this?
    Thank you

    I am sorry but I do not understand.
    I am not a programer .I have not idea about SDK, how it works neither how to install it.

  • My 3.4.5 has ~ 35000 jpg masters.  I have set aperture not to create previews on import and have ensured "maintain previews" is not ticked.  Every time I start aperture it insists on creating previews for ~ 4300 images. Why?

    Having had the previews created I selected all photos and "delete previews".  It did this quickly and no more previews being created.  Once aperture is closed and then re-opened aperture immediately sets about creating the previews for the same photos.  I don't understand why this should be happening.
    This is occuring on my Mackbook Air (Aug 2012) which has 256 GB storage. I am fast running out of space as I am using "Managed Masters".  I intend to make the masters referenced by relocating them to an external HDD but before doing this would like to clear up this problem first. I keep my Vault on the external HDD and have Time Machine and Time Capsule.  When I have relocated the masters to the external HDD I intend that TM backs the external HDD to the TC.  I tink that I will use the second partition on the external HDD for Carbon Copy Cloner to back up the Mackbook Air.
    Any help or advice warmly welcomed.

    Frank
    Many thanks for your input.
    Following your advice I have selected all the projects individually and checked the status of Mantain Previews.  Some were indeed marked up for Mantail Preview so I have unmarked them.
    I have also selected Photos and deleted  previews and also repeated this for My Projects.
    Checking the Get Info for the Preview folder in Aperture Library in Finder this now tells me that I have zero bytes for 564 items.
    Close and then reopen Aperture and it regenerates these564 previews in the blink of an eye.  I haven't been able to locate these photos yet.  I know there are about 120 in facebook and 10 in photostream but dont know where the rest are.
    It seems the issue is not with Aperture but with myself and not understanding Aperture sufficiently well
    Do you see the problem this way?

  • How do I create a 3D rotating images animation

    Hi, I'm trying to create an animation like the one on www.ibuypower.com
    I have 4 images that I would like to array in a similar 3d animation that users can manipulate like the one on this site.
    Any tips?
    Thanks

    If you want to replicate that effect in the same way, you should ask this in the Flash forum. The effect was created in Flash.

  • Make Ps create thumbnails for CR2 image files

    It's frustrating trying to find an images with cryptic camera file names.  Why doesn't Ps create thumbnail images of those file types?

    Just as a bit of follow-up, with appropriate codecs these things are entirely doable....
    Windows Explorer browsing of many different image file types in Thumbnail view:
    File Open dialog from Photoshop showing image preview:
    Even Microsoft Photo Viewer works:
    -Noel

  • Create frame for an image, PSE 10

    After reading various help sites and watching tutorials, I still cannot get a frame to show up in the workspace where I have the image.  I bring the image into the workspace, drag a frame thumbnail on top of the image, but the frame never appears.  I get the image surrounded by a sort of checkerboard space.  I'm not stupid and it seems to me this should be a simple operation.  What am I not doing?  Thanks so much.

    No, seeing as how it's an intermittent problem, try the Prefences thing.
    Added:
    Oh, wait a minute -- check the size and resolution of your image.  If it's a huge image at a very high resolution, it's probably that the frame size is too small to appear onscreen.  If you view the framed image at "Actual Pixels" size, can you see those failing frames?
    Ken
    Message was edited by: photodrawken to add comment.

  • Color changes after rotate image

    Hi,
    after rotate the "special" image (contains color space) the colors are changing.
    1. original image
    http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/C3E538A09A4211DBAE7417E2D45BF136.jpg
    2. rotate 4 times (each time 90�)
    http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/E19E8F409FBA11DBAFB497F6D45BF136.jpg
    3. rotate 8 times (each time 90�)
    http://www.magix-photos.com/mediapool00/67/FC/3E/40/7E/74/11/D8/8F/AE/D1/59/D4/5B/F1/36/oma/10/22BB57A09DEB11DB9E82003A55B2433B.jpg
    I'm using JDK 1.5.0_09 and JAI 1.1.3-beta.
    This is my code for rotate image:
        public BufferedImage rotateImage(BufferedImage image, int angle, int x, int y) {
            if (logger.isDebugEnabled()) {
                logger.debug("rotateImage(image, '" + angle + "', '" + x + "', '" + y + "') entered");
            if (image == null) {
                logger.error("rotateImage() failed, because image is null");
                return null;
            // convert angle in radius angle
            float radAngle = (float) ((float) angle * (Math.PI / 180.0F));
            BufferedImage newImage = null;
            RenderedOp render = null;
            try {
                ParameterBlock pb = new ParameterBlock();
                // image
                pb.addSource(image);
                // rotate about x point
                pb.add((float) x);
                // rotate about y point
                pb.add((float) y);
                // rotate with radius angle
                pb.add(radAngle);
                // interpolation
                pb.add(Interpolation.getInstance(Interpolation.INTERP_BILINEAR));
                // render
                render = JAI.create("Rotate", pb);
                newImage = render.getAsBufferedImage();
            catch (IllegalArgumentException iae) {
                logger.error("rotateImage() failed", iae);
                return null;
            finally {
                if (render != null) {
                    // clean memory
                    render.dispose();
            return newImage;
        }Has anybody idea what is going wrong?
    Best Regards,
    Rafal

    You probably have Photoshop set up to not color manage. That is not a good idea. Look
    here in the first images for how to set up your color management in photoshop.

  • My Rotated Images Do Not Save.

    I just processed my entire photography collection with Bridge. I rotated many of the photos. But now, as I'm looking at the folders in Windows Explorer, I notice that none of the images appear as being rotated.
    After reading the product support for rotating images in Bridge: "Rotating does not affect the image data; however, rotating an image in Adobe Bridge may rotate the image view in the native application as well."
    This is bad. Very bad. I do not want to go through ALL of my photos again and re-rotate them in another app. Is there any way for the rotations I made in Bridge to be saved to the image data?

    This is from Adobe:  Although Bridge allows you to quickly and easily rotate images, the rotation doesn't really happen until you open the file up in a graphics application such as Adobe Photoshop® or Adobe Illustrator® and save it in it's rotated state. So if you rotated an image in Bridge and then dragged it into Adobe InDesign®, it would appear with its original orientation.
    So with the above in mind seems like you can use the Image Processor in Bridge to open images in PhotoShop then save it.  It should be then rotated.    Since you are not adding anything the non-rotated images would remain unrotated so you don't have to know which ones were rotated and which ones were not.
    Or am I out to lunch?

Maybe you are looking for

  • Creative Cloud - why I think it is a huge blunder on Adobe's part

    One may congratulate Adobe for one-sidedly deciding what is best for its customers and ignoring the majority of its users. My records of giving money to Adobe stretch back at least to 2007, but CC is something I will not pay for, out of principle. An

  • Macro for automatically sending E-mail from a folder

    I have a folder containing purchase orders (in pdf format) for many companies (say 500 companies), which I should send them manually to all the companies twice a month. (by insert the Purchase order and selecting the E-mail address and send separatel

  • Problem During NWDS start up

    Hi all,     I have installed Net weaver IDE in my system.Now i have started my IDE by clicking on the icon. It was shown me a Browse option to select workspace. I have selected default workspace. But it is giving me an error saying : Problem during s

  • Cannot paste formatted text.

    I am using ID CS 3 on a Macbook Pro, running OS 10.6.2. My problem is that I have text formatted italic and bold from Text Edit but I cannot paste the formatted text (or import it) into ID without losing all formatting. I went to this Discussion Foru

  • How to run a workbook in Viewer 4i

    I need to run workbook from Apps menu which is using Discoverer Viewer 4i but I created this workbook in Discoverer 10g. My problem is am not able to view the 10g EUL in which I created this workbook under Discoverer Viewer 4i Options-->End User Laye