Help changing code for photos.

hi, i am a complete novice and have managed to use this code
to load videos into a div on a page, make them invisable, and play
each individual video on a player when clicked on via a picture
link in the same page. It works fine, but now i need to change the
code to do the same thing for showing pictures
here's the code for the vids
obviously i have to change the links to photos, and the image
source, but i need to change something else in the java script to
get it to work. and i don't know the function for images etc.
Please could somebody point me in the right direction.
Thanks

Hi Tom J.
If you are intent on mouseover effects for the button, you
are probably in for a fun ride coding some special solution.
Personally, if I want an image for these, I take the
following approach:
Insert an image.
Insert the RelatedTopics control and choose "Hidden, for
scripts"
Note the actual name of the control. Often it is simply
RelatedTopics. But depending on how it was inserted, may be
object1. Just hover the control in your WYSIWYG editor and the name
should pop up in a tooltip.
Select the image and make it a hyperlink. But in the
hyperlink properties, type
JavaScript:RelatedTopics.Click();. (and if the name differs
from RelatedTopics, use what you saw instead.
This method will make it so your user clicks the image and
the control activates.
Cheers... Rick

Similar Messages

  • Help with code for inserting horizontal scroll bar in photo gallery in Business Catalyst site?

    Hi,
    I am using Business Catalyst and Dreamweaver to create a trial site.
    I am not sure if this is the correct forum to post this request but anyway I have inserted a photo gallery module at the bottom of the sidebar in the homepage of my test site.
    Can anyone advise on whether jquery or any other code can be inserted into the page or module code that will replace the "next" hyperlink below the first 4 photos with a horizontal scroll bar at bottom of the gallery so users can just scroll through all 12 images ?
    Kind Regards, Matt.
    http://craftime-bs6.businesscatalyst.com/

    Alyssa,
    Have you tried putting this rule back as it was originally:
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto; /*was 9px*/
        color: #EF9CCF;
        background-color: #FFF;
    That is, changing your 9px back to auto.
    And giving  us a link (as you did) is much better than printing out the code for us! Thanks!
    Beth

  • Help regarding code for title change

    Hi All,
    I have a requirement like whenever we change the PO ie., when we change the  line item data say for example, if there is a quantity like 20kg and if we want to update itto 30kg., the PO will be changed.
    In such change cases, the title of the PO should be changed to "Purchase Order Change". 
    In these cases, the changes will be recorded in the table CDHDR and CDPOS.
    Can anyone pl tell me of how to write the code for this in the script as well as in the subroutine ...
    Help will be rewarded the best..

    Done. Found out the solution

  • Help changing my user photo

    im trying to change my user photo when i log into my MacBook air. I tagged faces into everyone one of my photos, but when I go to change my photo none of the pictures will show up under faces. It just says that I can go tag faces into my photos? Any help figuring out why they won't show up or how I can change my photo?

    Hi Carissalong98,
    Happy Holidays!  Is the photo you want to use for your User account on your MacBook in iPhoto or Aperture?  One thing you can try is to drag the photo to your desktop and then drag it from the Finder application to your account settings.  The article below explains to add a picture to your User settings.
    OS X Yosemite: Add a user picture
    http://support.apple.com/kb/PH18896
    Your user picture appears next to your name in the login window, and is used by apps such as Mail, Messages, and Contacts. You can choose your own picture. 
    Choose Apple menu > System Preferences, then click Users & Groups.
    Click the lock icon  to unlock it, then enter an administrator name and password. 
    Select your user, then click the picture.
    Do one of the following:
    Use an existing picture: Click a category, then select a picture. 
    Defaults: Pictures that are included with OS X. 
    Recents: Pictures that were recently used as user pictures. 
    My Photo Stream: Pictures from your iPhoto photo stream. 
    Faces: Faces recognized in iPhoto. 
    Linked: Picture from Contacts. 
    You can also drag and drop an image file from the Finder onto the user picture.
    Click Done.
    Cheers,
    Judy

  • Re:Help with code for server client

    Hi i am struggling to adapt code for UDPServer and client programs.
    how can i adapt the following server code to add a message before replying to the client?
    import java.net.*;
    import java.io.*;
    public class UDPServer2{
    public static void main(String args[]){
         DatagramSocket aSocket = null;
              try{
              aSocket = new DatagramSocket(9000);
                             // create socket at agreed port
                   byte[] buffer = new byte[1000];
                   while(true){
                        DatagramPacket request = new DatagramPacket(buffer, buffer.length);
                        aSocket.receive(request);
                   DatagramPacket reply = new DatagramPacket(request.getData(), request.getLength(),
                        request.getAddress(), request.getPort());
                             aSocket.send(reply);
              }catch (SocketException e){System.out.println("Socket: " + e.getMessage());
              }catch (IOException e) {System.out.println("IO: " + e.getMessage());
              }finally {if(aSocket != null) aSocket.close();}
    any help would be much appreciated i have tried altering the aSocket.send(reply) line but to no avail.
    thank you in advance

    Hi i am struggling to adapt code for UDPServer and
    client programs.
    how can i adapt the following server code to add a
    message before replying to the client?What do you want to add before replying to the client?

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • Help with code for System.currentTimeMillis()

    I need to time how long it takes to do various sorts (selection sort, insertion sort) and was instructed to use System.currentTimeMillis() to accomplish this. Please take a look at the code below and let me know what is wrong. I can get the file to complile but it does not record the time it takes to run the sorts. I'm pretty sure my error is in the below section of code. In order to save space, I've only pasted the snippit of code for this particular function. Let me know if I need to paste more code. Thanks in advance.
    case 5:
                             System.out.print("Enter the value to look for: ");
         val = scan.nextInt();
         time1 = System.currentTimeMillis();
         loc = list.linearSearch(val);
         time2 = System.currentTimeMillis();
                             totalTime = time1 - time2;
                             System.out.println("Total time for this search is: " + totalTime);
         if (loc != -1)
                                  System.out.println("Found at location " + loc);
         else
                                  System.out.println("Not in list");
         break;
                             

    It could be that it isn't actually doing anything
    though. Either because the data is poorly choosen or
    because it isn't actually sorting due to a bug.The name of the method being timed is "linearSearch". That's a really poor name for a method that is supposed to be sorting. But from other aspects of the code I would guess that it is doing a linear search of an array, looking for a particular integer. Even if the integer isn't in the array, comparing 20,000 integers is a trivial exercise.
    People don't realize just how long a millisecond is for a computer. If you have a 1 GB processor (not uncommon these days) then you can do one billion (one thousand million) operations per second. That's one million operations per millisecond. So chances are, even realizing that there's a whole lot of overhead in a high-level language, the OP's code runs in less than 1 millisecond.

  • Help! - code for infix to postfix

    can someome please send me the code for infix to postfix?
    thanks

    Or--and I know this will sound crazy, but just keep an open mind--you could try doing your homework yourself, and then post your attempt here when you get stuck, along with details of what specific problems you are having.
    If you are unwilling or unable to do that, then you should look elsewhere. This site is not a place to get code written for you. Try finding someone who will do it for money.

  • Need help with code for adding dates to form

    Hello forum goers
    I'm new to making forms and figured out how to auto add the date, however I need the form to change the date for every copy made.
    For example today is 06/08/2012 if I print 10 copies of the form it will output 10 pages ranging from 06/08/2012 to 06/17/2012. If code exists to do this I would be very gratefull to whoever helps, I also wouldn't mind if that is not possible for manually inputing the start / end dates.
    Currently I print 15-30 copies of the form and hand write each of the dates but I'm just getting to busy to do that. I also cannot print one a day it must be in batches.
    Thanks in advanced.

    What you are asking for is more complex than just setting the current date. Each time the form prints it has to know that it has to change the date. I would suggest doing this.
    First, setup a document level script to set the date to the current date. I suspect that you have already done this?
    Next, Create a "DidPrint" document action to increment the date.  To do this the script will need to scan the current text value of the date, add one day to it, and then reformat it.  You'll find information on this type of scripting in these articles:
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-2
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-3
    Since the increment happenes in the Did Print you will need to print each copy individually. If you enter 10 copies in the print dialog it won't work. You have to print one at a time.  You can automate this activity with a console script.
    One of the advantages of incrementing in the DidPrint is that you can also manually enter a date and it will increment from there.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)
    Having trouble, Why Doesn't my Script Work?

  • Changes & Fixes for Photos within Yosemite!

    Greetings!
    I am a semi-professional photographer who was VERY excited for the new Photos app to take place of iPhoto within Yosemite. (It was time for an overhaul!)
    Many of the features are incredible, just what we needed! I for one, don't need the ability (most of the time) of transferring photos around from my phone, tablet, computer, etc. but totally understand the value in having this new platform linked with iCloud. Overall, it's very well done! Especially all of the new editing tools (keep them coming!) The more, the better.
    ...With that being said, I'm finding that Photos has some fundamental issues with it's user interface & organizational tools for people who edit their photos using Photos. The short answer from most people is "Photos, isn't for professional editing" - I understand that! However, I've been able to achieve some amazing results with iPhoto in years past using RAW files & love how simple it is when compared to programs like Lightroom/Aperture/etc.
    Below, I'm going to highlight a variety of simple, but crucial things I'd REALLY like to see in future updates of the Photos program. Some are very simple but completely necessary; as I mentioned. (Hopefully the good folks working on this program at Apple are already adding these features! ..but I just wanted to make myself heard & get some feedback)
    1. The ability to zoom in & out of a photo using the "scroll button" on my mouse - I'm not sure why I have to manually select the "zoom" bar at the top of the screen every time I'm zooming in/out of a photo that I'm editing within Photos. This is a basic feature, that needs to be addressed/fixed. Instead of zooming in/out, it simply moves the photo up+down. Very annoying. Additionally, where did the smaller zoom "window" go, showing your zoom factor? (In iPhoto, there was a smaller window that would pop up while zooming that allowed you to see where you were actually zoomed, within the entire frame of the photo you were viewing; this was very helpful - Please bring this feature back!)
    2. Please add a plethora of options to the "Preferences" section of Photos! At a bare minimum, add in all of the old options that were included in the Preferences section of iPhoto... For example, I can't even change the background color of the program at this point. It's white when your viewing photos & black when your editing them.... In iPhoto, you were able to select an overall color ranging from white-black (the entire greyscale) for the background color of the program. I can't stand the white background (I'm sure I'm not the only one!) - I understand the reasoning, you want to be able to differentiate between viewing photos & editing photos; hence the different background colors; but give us (the users!) the ability to change this if we want... It just seams like there are hardly any options in the preferences tab of Photos - Hopefully this will be updated with lots of choices, in the near future.
    **Just fixing/adding more options & customizable settings will really, really help this app - Maybe I'm missing something? But at this point, Photos needs some very basic features, immediately; to make it user friendly. As mentioned above,I really hope the wonderful people at Apple are diligently working on this, if they are going to dump Aperture & iPhoto in the future. As a colleague mentioned to me earlier, it's almost as if they just released Photos, knowing that it was missing all sorts of basic features (which is fine) as long as they intend to update them in the near future & over time! (as they always do..)  BUT let us know that they are missing & your working on them.. Haha. Jease!
    Thanks again,
    A loyal customer & Apple user
    Mike G.
    iMac (27-inch, Late 2013), iOS 8.3

    Regarding the white and black background...   I, too, am very bothered by the glaringly white background.  I much, Much, MUCH prefer viewing photos against a black background.  I sent a Feedback request to Apple regarding this.
    Question for you:  When you maximize the Photos window to Full Screen, does the background display as White or Black?  On my Mac, the background is White whether the Photos window is fullscreen or not.  But yesterday I was in the Apple Store and tried Photos on the new 12" Macbook, and when I switched Photos to full screen the background went black!  This was NOT edit mode, it was just the photo viewing mode.  (that is, I selected a photo and pressed SPACE bar to open it, but not the RETURN key to edit it). 

  • Need help with preloader for photo gallery

    Hello!
    I know I might be the 99999999991 to say that but I will say
    it...I'm a begginer with flash and I have a problem...:-)
    I'm building a photo gallery which loads jpg photos inside a
    loader component by using MovieClipLoader.
    Everything works just great but my only problem is that I
    can't scale the content (the jpg's) to the size of the loader
    component.
    I tryed everything but the photos are loading bigger then the
    loader, and I wnat to have the photos bigger then the loader so
    that I could have good quality on any resolution. Here's the
    actionscript I used, if it's necessary:
    //------------------MovieClip Loader---------\\
    var mcLoader:MovieClipLoader = new MovieClipLoader ();
    var myListener:Object = new Object ();
    mcLoader.addListener(myListener)
    myListener.onLoadProgress = function
    (target_mc,bytesLoaded,bytesTotal) {
    extLoader_mc._visible = true;
    var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
    extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
    extLoader_mc.extLoadinBarLines_mc._xscale = pctLoaded-1;
    extLoader_mc.pct_txt.text = pctLoaded;
    if (bytesLoaded >= bytesTotal) {
    extLoader_mc._visible = false;
    mcLoader.loadClip("pics/zernike1.jpg",picViewer_mc.picLoader);
    T
    Text
    Text

    first of all, you can't directly resize the bitmaps, you have to resize the movieclip above it. so if needed, create an empty movieclip inside another wrapper movie clip and resize the wrapper.
    then i noticed you don't have onLoadInit in your listener
    this method:
    myLIstener.onLoadInit=function(mc:MovieClip){
    will execute commands after the content is loaded. so you will have to resize your content after it's been loaded. you can't just resize something that you loaded above in your code, you have to wait until it's fully loaded
    anyways since you siad you are beginner i will list some useful tip for this job (i don't know if you already know them):
    this -refers to current movie clip
    this._parent -refers to parent movie cilp
    width and height of movie clips are controlled by _width and _height properties, not width height

  • Aperture Workflow - need help creating workflow for photo management

    Hi -
    I currently shoot with a Canon SD890 (point & shoot) and a Nikon D300 (SLR). My photography is either personal photography or street photography. I may use some of my photography for a web project but that should not be considered right now. I shoot jpegs with the SD890 and RAW with the D300. I need to create a workflow that will allow me to manage all of my photos as well as the RAW vs JPEG aspect. Here are a few initial questions:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives?
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    Thanks for your help!

    jnap818 wrote:
    1) Should I separate the RAW and JPEGs in Aperture (two libraries)? One library for finished photos and one for negatives? I am interested to hear how others do this...especially if you use both point & shoot and SLR cameras.
    No, use a single Library. Aperture will have no problems with the various formats or with various different cameras.
    2) What folder structure should I use? Since I am not a professional photographer, I won't be shooting projects. I think something date or event driven would be best (preferably both).
    Actually those date or event driven batches of images are very logically "Projects" in Aperture. Simply name each group of images as you import into AP as a new Project.
    IMO it is not good to import camera-to-Aperture (or direct to any app other than the Finder). Best is to use a card reader and use the Finder to copy images from the camera card to a folder on the computer hard drive.
    Below is my Referenced-Masters workflow:
    • Remove the CF card from the camera and insert it into a CF card reader. Faster readers and cards are preferable.
    • Finder-copy images from CF to a labeled folder on the intended permanent Masters location hard drive. I label that folder with the Project name suffixed with _masters, that way I can always find the Masters if Aperture forgets where they are.
    • Eject CF.
    • Burn backup copies of the original images to DVDs or to hard drives (optional backup step).
    • Eject backup DVDs/hard drives (optional backup step).
    • From within Aperture, import images from the hard drive folder into Aperture selecting "Store files in their current location."
    • Review pix for completeness (e.g. a 500-pic shoot has 500 valid images showing).
    • Reformat CF in camera, and archive DVDs of originals off site.
    Note that the "eject" steps above are important in order to avoid mistakenly working on removable media.
    I strongly recommend that every Aperture user spend $35 and work through the tutorial CD Apple Pro Training Series: Aperture 2 (Apple Pro Training Series) by Ben Long, Richard Harrington, and Orlando Luna (Paperback - May 8, 2008), Amazon.com. Note that the value is in working the tutorial, not in using the book as a manual.
    Good luck!
    -Allen Wicks

  • Help using ipod for photos, music, and video

    Guys, I received an IPOD classic 80gig months ago with a college class that I took. I thought it was really neat at the time as I could watch the videos. However, now I'm so glad that it came free with the class and honestly can't understand how anyone can figure out how to operate it. I have photos, music, and videos that I would love to download to the IPOD and watch but after months of reading and rereading the IPOD features guide, I still have no clue how to do it? I'm a college graduate, made the Dean's list. Smart guy, doesn't seem to help me. The features guide will tell you to go to this folder, etc, BUT when I plug my IPOD in there are only like 4 folders that exist! Where are those folders that they are talking about?? I downloaded some photos on my computer into a folder, dragged and dropped them onto my ipod and when I turn the ipod on it says NO PHOTOS!! Same thing happened with my videos and my music? I have a relative in a nursing home who wants me to show her some family photos. I wanted to IPOD those photos and bring them to her. Can't figure it out! Audiobooks??? No way I'll ever figure out how to do that! Are you guys ALL BRAIN SCIENTISTS OR WHAT???
    Message was edited by: rob25910
    Message was edited by: rob25910

    Thanks Neil, for trying to help me put. I actually figured out how to use the notes. I couldn't believe it worked. I was disappointed to see my notes "cut off" as I guess it has a 4000 character limit, I believe it is. Maybe I'll do a search for itunes software on google and try to figure it out. I don't know if the itunes software is free. You know, not for nothing Neil, but I'm suprised an IPOD classic costs over $250.00 and all they give you is a quick start guide. You have to go to the internet to find a copy of the features guide. That's like buying a new car and not getting an owners manual with it. Odd. Thanks again for trying to help me out.

  • How to change presets for Photos 1024 X 768 Premiere 11

    How can I change the presets on Premiere 11 to work with Photos 1024 X 768 or 2592 x 1944 or 3648 x 2736. I want to use Premiere but I take more photos than video.

    jrodriguez6
    For your consideration....
    If you have Premiere Elements 11 in Windows 7, 8, or 8.1 64 bit (and depending on overall system resources)....assuming a NTSC setup....
    a. Set the Premiere Elements 11 project preset manually
    File Menu/New/Project
    NTSC
    DSLR
    1080p
    DSLR 1080p30 @ 29.97
    before you close out of that area, make sure that you have a check mark next to "Force Selected Project Setting on This Project".
    b. In the Premiere Elements 11 Expert workspace/ Edit Menu/Preferences/General remove any check mark next to "Default Scale To Frame Size". Import the photos into the project via Add Media/Files and Folders/Project Assets from where you drag the photos to the Timeline.
    c. From the Timeline, scale each (Constrain Proportions checked in Applied Effects Tab/Applied Effects Palette/Motion Panel expanded and its Scale property) so that the images fill the space in the monitor provided by the project preset.
    d. Publish+Share/Disc/DVD disc with preset = NTSC_Widescreen_Dolby DVD.
    What does that look like?
    Further details on the above to come along with any clarification requested.
    Thank you.
    ATR
    Add On...Done as suggested will leave no black borders.

  • Help writing code for drop down menus and/or radio buttons

    Hey, new to the forums, fairly new to programming in Java. I want to put up a "Ebay store", on Ebay.... well I guess that's obvious. I want to make a menu that either incorporates "Drop-down menus" (preferred - see below) or radio buttons. I do not know how to code these or how to incorporate them with the Ebay interface so that the new options selected by the customer with automatically adjust the price of the item. All help is appreciated.

    I'm guessing what you want to do has nothing to do with Java. It probably has more to do with JavaScript. You are probably going to have to learn a little HTML (Drop-down menus are really select boxes) and then some JavaScript to go along with it (onChange="javascript: doPriceChange();"). I have absolutely no idea about the EBay interface so this is all just a guess. Here's a google search for adding javascript to a select box.
    http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=javascript+select+onchange

Maybe you are looking for

  • E-Mail Functionality for PO's

    Hi Every Body, I am working on email functionality. => (Requirement) Sending the PO Order Ouput to vendor via email in the form of PDF fom. => I am getting some problem while receiving mail in the OUTLOOK. => I am getting mail in the form of "TEXT Fo

  • CJ88 Settlement to Fix Asset

    Hi experts, I tried to do settlement from a WBS to a fix asset. After maintaining the settlement rule I went to CJ88 to do the actual settlement, however i got the following error message: Dignosis Duriing settlement of sender WBS there was an atempt

  • I bought the adobe creative suite 6 master collection, and my computer crashed, how do I reinstall it again, I'm registered already with it

    I need some help re-installing my adobe creative suite 6 master collection. My computer crashed and I did register this product before hand, but I dont know how to download it again on to my computer. Can someone give me a hand doing this again, I ha

  • 10.4.6 update destroyed fonts???

    I updated to 10.4.6 and I'm getting some weird characters (numbers/fractions) in place of text (ie "To:" "From:" in Mail headers. Any ideas?

  • Can't transfert music to my iPOD

    When I want to put a song mp3 via iTunes, it tells me that: "The iPOD cannot be syncronized. The required disk cannot be found." I tried to uninstall and reinstall iTunes, I tried to restore my iPOD, nothing works. What can I do please? my ipod is th