Rotating image when refreshed

Hi, I have a table with a background image inside one of the
cells, I would like to change this background image when the page
refreshes. i cant figure out how to do it!
It is here: www.morgansilva.com
THanks!

I should say that I would like text over the images, so I
want the rotating image to be the BACKGROUND of the cell. Hope that
helps explain it more.

Similar Messages

  • I want to rotate images on refresh

    I work for a newspaper, we want to rotate ads on refresh at random. We are looking to stop using our current programmer. We just need to figure this out. I want it to rotate like THIS. Is there a fairly simple way to do it in dreamweaver?

    In the following example let's assume you have 4 images in your root directory sequentially numbered 1.jpg, 2.jpg, 3.jpg, 4.jpg
    Use php to create an array of the file names and then randomize the array. Then simply echo the results of the random array.
    On page.php put this:
    <?php
    $input = array("1", "2", "3", "4");
    $rand_banner = array_rand($input, 4);
    ?>
    <!-- Start Banners -->
    <img src="<?php echo $input[$rand_banner[0]]; ?>.jpg" /><br />
    <img src="<?php echo $input[$rand_banner[1]]; ?>.jpg" /><br />
    <img src="<?php echo $input[$rand_banner[2]]; ?>.jpg" /><br />
    <img src="<?php echo $input[$rand_banner[3]]; ?>.jpg" />
    <!-- End Banners -->
    If you have more images but you'd like to limit the number that's rotated on pageload then change the limiting number in the array_rand function to correspond to the number of random images you'd like displayed. Let's say you want to only display 5 random images out of 10 possibilitites...
    Change this:
    <?php
    $input = array("1", "2", "3", "4");
    $rand_banner = array_rand($input, 4);
    ?>
    To this:
    <?php
    $input = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10");
    $rand_banner = array_rand($input, 5);
    ?>

  • Pages 5.0.1 rotates images when exporting PDF

    In two sperate occasions I have inserted an image into a table cell, and also a shape.  I've scaled the image to the size of my liking.  When I exported the document to PDF (file > Export to > PDF) the PDF displays the images rotated 90 degrees and stretched to fill the size of the cell, or shape.

    I thought Pages 5 doesn't allow image insertion in Table cells?
    Has this changed in Pages 5.01?
    Either case it still seems buggy.
    Peter

  • IPhoto rotates image when printing.

    In iPhoto after I have selected the format size and hit print, when the print window drops down it rotates the image in the format frame 90 degrees.  This crops the image.  How can I correct this?

    You have a damaged database file.  Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • Code Problems. New Image When Refreshed

    (First Im sorry if Iv done this wrong)
    Iv made a code that allows my main banner to change everytime the page is refreshed. it works well but I cant seem to get it linked from my .html to the .js.
    There are the codes Im using.
    <html>
    <script type="text/javascript">
    var imagesA=new Array();
    imagesA[0]="images/1.jpg";
    imagesA[1]="images/2.jpg";
    imagesA[2]="images/3.jpg";
    imagesA[3]="images/4.jpg";
    imagesA[4]="images/5.jpg";
    imagesA[5]="images/6.jpg";
    imagesA[6]="images/7.jpg";
    imagesA[7]="images/8.jpg";
    function randomimage() {
    var i=Math.floor(Math.random()*imagesA.length);
    document.getElementById("randomA").src=imagesA[i]; }
    onload=randomimage;
    </script>
    </head>
    <body>
    <img id="randomA" />
    </body>
    -------and
    <script src="url.js" type="text/javascript"></script>.
    if anyone could point out my mistakes it would be most helpful, Cheers

    no, images is the folder name where they are held, but i tried it anyways but same problem. cheers though
    edit---
    My code takes over the whole web page when I put the code in, in the html page, so there is only the background and the banner are showing, but if you view it online then it shows everything. What i wont to do it make it so I am able to edit the site without having to 1st delete the code then enter the code at the end everytime.
    I have now found out that if I put my banner at the bottom, everything is still there. so my main banners now have to be the footers.

  • How do i rotate images in the Book feature?

    I run Aperture 3.4.4 and want to know if i can rotate images when designing a book.  I looked through the archives and there are several notes that say if i mouseover the upper left corner of a selected image in Edit Layout mode i will get crosshairs.   This does not happen in my version.  Any suggestions?

    You could try to change the "angle" in the "Edit Layout" view in the Size & Position options.
    To show the "Size&Position" layout options use the cogwheel below the Pages browser.
    Regards
    Léonie

  • Digikam/Gwenview don't rotate images

    Hi,
    I have a problem rotating jpg images with the KDE image viewers digikam and gwenview.
    Gwenview displays rotated images when I rotate them manually, but if I close and open gwenview they are not rotated.
    Also with digikam I cannot rotate images. It displays a message saying the rotation of the image failed. If I start digikam from a console, the error message
    "QFile::setFileName: File (/tmp/kde-username/digikamM10192kipiplugin-rotate.JPG) is already opened"
    Because the rotation fails with both programs I think the error is in the kipi-plugins somehow. The same error is displayed if I use kipi-plugins 1.1.0 from testing. The rest of the system is up-to-date Arch i686.
    Any idea what I can do to solve this problem?

    I think there are two problems:
    - gwenview and digikam (thumbnail list) unable to rotate JPEGs (it does work with PNGs)
    - showfoto crashing when saving images (all formats I tried)
    So I created two bug reports upstream: gwenview and digikam/showfoto. The second one has been marked as resolved because I did not provide a GDB backtrace (just KDE's): I will provide the needed backtrace tonight (aproximately 10 hours from now).
    Feel free to vote on both of them and/or add whatever relevant information you may have (a 'faster' gdb backtrace for the second one would be of help).
    Last edited by TioDuke (2010-02-18 15:25:22)

  • Severe memory leak in LR5 (CC release v5.0) when cropping (rotating) images

    I have a Quadcore i7 iMac with 12GB of memory.  When I start LR5, there is 8GB remaining.  With nothing else being done, as a edit some images, and especially when I am rotating images in the crop tool to level the horizon, fI sometimes get the "OSX beachball" and the memory immediately drops from 8GB to 10-20MB!!!  The disk goes crazy and LR5 and the entire machine slows to a crawl.  The only way to bring it back is to Force Quit LR5.  But this has happened with the same picture twice already and am getting ready to try #3.
    Please fix this .... this is definitely a bug as there is no reason it should eat 8GB of memory for doing an image rotate.

    There are a number of bugs that have been logged against crop/roate in Lr5. The engineering team are currently working to fix these.

  • Partial rotation of images when importing...

    I'm wondering how to stop Lightroom from "squaring up" my images when I import them.  Attached is a screen shot to illustrate.
    I also can't find any consistentency, if I import the same image three times it will be as above twice but not on the third time!
    I'm wondering if this is a metadata thing?
    BTW camera is a Nikon D600.
    With thanks in advance,
    -Simon

    If this is only happening to a few of the images on import it is most likely something related to your camera. If ALL of the Imported images exhibit the issue then there are two things in LR that could cause this to happen:
    1) You are applying a Develop preset on Import that has  Lens Corrections> Manual> Rotate tool setting other than '0.'
    2) Your LR 'Default Develop Settings' has a Crop Angle tool or Lens Corrections> Manual> Rotate tool setting other than '0.'
    To check this import one of the images from CF card that shows the rotation. Examine the Crop Angle tool and Lens Corrections> Manual> Rotate tool settings to determine which one is being applied. From inside the Develop module with the imported image still rotated hit the master 'Reset' button at the bottom of the right-hand Develop panel. This applies your LR 'Default Develop Settings.'
    a) If the image is still rotated you may have inadvertently updated your LR 'Default Develop Settings' in the past with the image rotated. To correct this simply hit the master 'Reset' button, reset both the Crop Angle tool and Manual Rotate tools to '0,' go to toolbar Develop> Set Default settings, and select 'Update to Current Settings.'
    b) If the image is not rotated you are probably applying a Develop preset that was inadvertently created with the image rotated. You will need to recreate this preset making sure Lens Corrections> 'Transform' is unchecked. This is the only Develop preset setting that will rotate the image as in your example.
    If neither a or b fixes the issue you can try resetting your LR Preferences file:
    http://members.lightroomqueen.com/Knowledgebase/Article/View/1148/198/how-do-i-delete-the- lightroom-preferences-file

  • Im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    I find that if you have multiple 3d object  they must be merged into a single 3d layer their positions reset to align to the same axises then sized and positioned along them. The layer should then be able to be animated well around an axis like the y axis. Here a Sphere, Cylinder and ring. http://www.mouseprints.net/old/dpr/McAssey-CC.mp4

  • When rotating my custom .bmp image with Rotate Image Control.vi using the Rotate.llb, why is my rotated image coming up blank?

    I downloaded the Rotate.llb and am trying to rotate a simple 24bit .bmp I made in Windows Paint, but the rotated image comes up blank.
    I edited the default image control and indicator to have my image inside it and really don't know what else to do? The example works fine with the default image, I'm wondering if it has to do with my image properties?
    I tried using "Picture to Pixmap" but to no avail. Any help would be greatly appreciated. I am attaching a screen shot of my results and the modified Rotate vi I am working on, thanks.
    Attachments:
    Rotate Picture Control_v2.vi ‏16 KB
    rotate_shot.jpg ‏383 KB

    Hello Sametron,
    Give this a try:
    Regards,
    Jeff L.
    Applications Engineer | National Instruments
    Attachments:
    201606.zip ‏1 KB

  • New to Dreamweaver - need new-image-on-refresh code

    Hi everyone,
    I hope this is the appropriate place to post this request, if not, please redirect me. Thanks.
    I have extremely limited knowledge using Dreamweaver and coding (ie: I know basic html), but I am attempting to build a page where the image I have sitting in a table cell changes randomly to another when I refresh the page. I have looked on the net for simple copy/paste solutions, but it is boggling my brain, and the attempts I've tried don't seem to be successful.
    Does anyone perhaps have some reliable code and mind talking me through it?
    Thanks in advance.

    aphasia2008 wrote:
    Although my web design vocabulary is rather poor, it would seem that the google results for the term "Javascript image rotator" seem to provide code which will rotate images with a timed transition.
    Yes, an image rotator changes the images on a timed basis. For a static image that changes just on page load, the term to search for would be JavaScript random image. But I see you have found a solution. You can often find a lot of help just by typing a brief description of what you want into a search engine. Dreamweaver doesn't have a behavior for random images.

  • Rotating images

    Hello,
    I have created a website which displays an image and have added a button which when is clicked will rotate the image. The problem I am having is that the page seems to be loading before the image is updated and the non rotated image is still displayed on the page. I don't think this is a caching problem because I tried appending a unique name to the image source for each page refresh and the old image still appears.
    The reason why I think that the page is refreshed before the image updated is because if I have a popup window to display before the page is refreshed and let it sit there for a short period of time the page refreshes correctly displaying the rotated image.
    Is there any way to halt the browser from refreshing before my java class is completely done writing out the image? My java class that does the rotation is called from a javaservlet if that helps...
    Thanks,
    -- George

    Ok, thats a little more info.
    Funny, your the first person I ever heard of that is using velocity rather than a real web langauge.
    Anyway, I think what your doing is confusing where and when what code should executed. Its a tremendously common misunderstanding.
    If you use a java servlet to get your image names, your going to have to have the page (or part of the page in a frame, iframe or somthing equally lame ) reload.
    If you want your page to have a different image load when somone hits a new link, then you can worry about vm code and getting servlet names, and you *wont use javascript.
    If you want to have an image appear when you highlight a link or have time pass or somthing, then you will use javascript completely to do this, and you will only use VM to write the names and populate the javascript array.
    ~kullgen

  • Rotated image overlaps other controls

    Hi, I am working on an AIR app involving images. One of the functionalities is viewing as well as rotating images. I made a simple test app to illustrate this portion:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                private function rotate():void
                    var bitmap:Bitmap = Bitmap(img.content);
                    var matrix:Matrix = bitmap.transform.matrix;
                    var centerX:Number = bitmap.width/2;
                    var centerY:Number = bitmap.height/2;
                    matrix.translate(-centerX, -centerY);
                    matrix.rotate(90*Math.PI/180);
                    matrix.translate(centerY, centerX);
                    bitmap.transform.matrix = matrix;
            ]]>
        </mx:Script>
        <mx:Text width="100%" text="Some text"/>
        <mx:Image id="img" width="100%" height="100%" source="test.jpg" horizontalAlign="center" verticalAlign="middle"/>
        <mx:Button label="rotate 90" click="rotate()"/>
    </mx:WindowedApplication>
    The application window has text on the top and a button on the bottom, with the image in the middle. Each click of the button rotates the image by 90 degrees.
    On launch, the app works great. It fetches the image file and fits it to the Image container. As I resize the application, the image also resizes and maintains the position relative to the other controls. Top text and bottom button are where they should be. All good. Let's assume the image is landscape/wide. After I perform the rotate 90 degrees by clicking the button, although the image is rotated and now in portrait orientation, the bottom portion of the image is now out of the image boundary and overlapping the button.
    Is there a way to tell the image to fit the content to the container again? Basically, re-layout the whole thing as if the image is in this new orientation.
    I suppose I can try to figure out a change in scale and resize the image, but I am not sure if this will hold when the user resizes the application. Also, the rotated image is now rather far to the left, as the "top left" corner is where a landscape image would be. For a portait orientation that's centered horizontally, it should be further to the right. I suppose I can also come up with some formula to center the rotated image. It just seems that the application already has all this logic built in, as it did exactly what I wanted when the image was loaded initially. If I can just ask the application to do it again. Note that similar issue occurs if the image starts out in portrait orientation and is rotated to landscape (too far to the right).
    Thanks in advance for the help.
    Will

    Thanks Sheila and Arnis,
    Today I opened the project to try different zoom settings and the problem has vanished; I get the correct arrow at zooms of 100, 120 and 140%.
    Likely a bug somewhere deep in Frame's innards. Anyway we've ordered TCS3 so soon I'll be using FM10. Thanks anyway.
    --- Derek

  • LR rotates images as they were at the upload

    Hi everybody
    I went back to a folder I haven't been looking for about 3-4 months. After I located the folder from the external disk all the images opened,  with my surprise, without the rotation I have set at the time so I had to to do it all again. Usually LR should retain the settings you apply to images, with no time limitation. So what happened in this case?
    p.s. it's even worse: LR is opening the images, in Grid View, initially with the rotation I set after the first opening but as I scroll down, always in Grid View, the images showed in the screen are rotated back as they were at the upload.
    Then I scroll down a bit more, images that were out of view are showed with the correct rotation and after a while they start rotating as they were at upload .....what the hell is going on???

    I think the key is when you said you have not viewed these pictures in 3-4 months. Therefore LR deleted its previews and the effect you are seeing is LR re-making them. If it does not have a preview in its cache it tries to be quick by showing you the JPG preview in the image file. That's as the camera recorded it. The it makes a preview from the image data, and finally applies the editing steps either from the catalog or the XMP information in the file.
    So if you give LR the time to do all that it should give you the pictures as you last had them in LR.
    I just went back to some pictures from February in my catalog and LR did recall the image orientations.
    BUT - I am also confused. I did a test and rotated a picture in LR. That rotation did not appear in the History panel. That surprised me, because LR does remember any rotations applied. I don't know where.
    Another factor may be that many cameras record the orientation in the EXIF. Thus my Canon DSLR rotates images correctly on the LCD display whereas my Nikon Coolpix P6000 does not. This could be part of your issue:- the camera's notion of orientation vs. LR's.
    So this is only a partial answer but I hope it helps.

Maybe you are looking for