I need help making a popup menu activate a customized lightbox for a digital magazine/publication.

I'm not much of a programmer since my experience is in animation, but I need to make a popup window link to/activate a lightbox. I did well just to get the button to make the popup work since I have no programming experience! So now, on to something a little more complex for me! A button is basically supposed to bring up a menu (which I got to work) and the menu is supposed to have links that the user can click on to open up a lightbox similar to the one that opens up on the first click of this example: http://viewer.zmags.com/publication/e9dd9178?viewType=pubPreview#/e9dd9178/1
These were the instructions I was given, but I'm not sure where to even place this code! Please help!
For example for Brides/Target this looks like this:
if (window.location.host.indexOf("brides.com") !== -1) { 
            document.domain = "brides.com";
        $('.productImages1').click(function() {   
            openLightbox("http://www.target.com/p/riedel-vivant-champagne-flutes-set-of-4/-/A-10077709#prodSlot=medi um_1_1&term=200-03-1024?ref=tgt_adv_XC&afid=d_brides&cpng=2013weddingregistry&DFA=1");   
            trackEvent("show", {page: 19, id: 'A-10077709', name: 'riedel-vivant-champagne-flutes-set-of-4'});    //_gaq.push(['_trackEvent', 'Target Advertisment', 'Show', 'Page 19 - item 1']); });

I was also given this information, but since I can't really read or write code, this means nothing to me. Is this something I can paste in the stages action panel or on the actual buttons that I'm wanting to call up the lightboxes? I like Edge because it seems to be easy and user friendly for creative/non-programmers like myself, but this is getting a bit complex for me. How can I go about this without having to code HTML5 from scratch?
In the header of the HMTL file, you'll need to add a reference to the Zmags API.
Example in Header
<script src="//secure.api.viewer.zmags.com/widgets/iframe.js" type="text/javascript"></script>
Example with Javascript section:
<script type="text/javascript">  // Opens the specified url in a lightbox, and applies the supplied css to it, if any; otherwising defaulting to the // standard width and height for the lightbox. To explicitly close the lightbox, call close() on the returned lightbox. function openLightbox(url, css) { return window.parent.parent.com.zmags.ps.widget.openLightbox(url, css || {"width": "100%", "max-width": 1010, "height": 780}); } // Shares the specified url on the given network, with optional title and image. This will automatically trigger // tracking of the shared url, so no need to do so here. function shareUrl(network, url, image, title) { return window.parent.parent.com.zmags.ps.widget.sharing.shareUrl('widget', network, url, title || 'Check out this product from Target', image); } // Tracks the logical action, e.g. "show", "overview" event, with the supplied arguments. The actual event action/label // formatting is handled by the Zavior configuration, and can have values injected, like if "args" = {page: 7, name: 'foo', id: 'bar', item: 1}, // a configured label can utilise these data like "${page}" and "${item}". function trackEvent(action, args) { if (!args) { args = {}; } return window.parent.parent.com.zmags.ps.widget.trackEvent("google_analytics", action, args); } if (window.location.host.indexOf("brides.com") !== -1) { document.domain = "brides.com"; } $('.productImages1').click(function() { openLightbox("http://www.target.com/p/giada-de-laurentiis-for-target-6-qt-cast-iron-dutch-oven/-/A-11992 552#prodSlot=medium_1_1&term=11992552?ref=tgt_adv_XC&afid=d_brides&cpng=2013weddingregistr y&DFA=1"); trackEvent("show", {page: 8, id: 'A-11992552', name: 'giada-de-laurentiis-for-target-6-qt-cast-iron-dutch-oven'}); //_gaq.push(['_trackEvent', 'Target Advertisment', 'Show', 'Page 8 - item 1']); }); $('#activateBtn').click(function() { document.getElementById('activateBtn').style.visibility = 'hidden'; //trackEvent("overview", {page: 8}); $('#big_wrapper').animate({ left: '+=100%' }, 1000, function() { //do nothing }); }); $('#deactivateBtn').click(function() { $('#big_wrapper').animate({ left: '-=100%' }, 1000, function() { document.getElementById('activateBtn').style.visibility = 'visible'; }); }); </script>

Similar Messages

  • Need Help making a navigation menu for a website

    Alright so I've been having some problems getting this to work correctly. I am making a navigation menu for a website and I'm trying to get when I hover over the main header a drop down appears animated of course below it. I also want when you highlight a specific text line for it to highlight blue along with a rectangle behind it to change to a lighter shade of red.
    Some of the problems  I have been running into is play and stop commands on mouseover and them not stopping when they should and getting the text to change color.
    Thanks for the help.
    Here are some screen grabs of what I am doing
    http://imgur.com/W2bZuF3
    http://imgur.com/W2bZuF3
    http://imgur.com/2GI3y71

    Your page's code is still a bit of a wreck.  Do you ever look at it?
    <html>
    <style type="text/css">#p7MBM_1 {
      width: 951px;
    You need a doctype first - I recommend HTML4.01 Transitional.  Open this (and other pages) in DW and use FILE | Convert > HTML 4.01 Transitional, then save.  But wait until you do the other changes recommended below before doing this.
    Add a <head> tag below the <html> tag.
    Add a <title> tag below the <head> tag.
    Add this below the <title> tag - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    Add </head> below this -
    <style type="text/css">
    <!--
    .style10 {font-family: "Goudy Old Style"}
    -->
    </style>
    You may want to change that font-family style to "Goudy Old Style, Geneva, Times, 'Times New Roman', serif", since Goudy is not web safe.
    Move <body> below that </head> you just added.
    That will clean your code up a bit.  Let's look at the page again when you have done these.

  • I need help making Adobe Edge animation appear correctly on iphones, ipads and android phones.

    I need help making Adobe Edge animation appear correctly on iphones, ipads and android phones. It currently looks fine on desktops and androids. I am using wordpress with a responsive theme (Canvas). I will need you to document The url is http://adamhtc.org.s183459.gridserver.com.

    Thanks George, interesting thought.  I looked on Adobe's site and they "advertise" fillable forms for the iPhone and Android markets, but on the Windows Phone tab, that is mysteriously missing.  lol    Maybe it will come later?   Meanwhile, I'll google to see if there are any PDF viewers that can handle it now.   Thanks for the reply.  :-)

  • Need help on Multi level menu implementation

    Hi All,
    Need help on Multi level menu implementation
    Thanks,
    Anu

    Hi Anu,
    Please go through this link Implement Multilevelmenu navigation
    Thanks,

  • My grandma is a new apple user and she needs help making an apple account.

    my grandma is a new apple user and she needs help making an apple account.

    She should call Apple support or visit the Genius Bar at an Apple store (make an appointment first at http://apple.com/retail). They will walk her through the process.

  • I need help getting my os x mountain lion to work for my pro tools

    I need help getting my os x mountain lion to work for my pro tools

    Since you provide no details I can do nothing but guess, so perhaps this will help:
    http://avid.force.com/pkb/articles/en_US/how_to/Upgrading-to-Mac-OS-10-8?popup=t rue&NewLang=en&DocType=1080
    http://avid.force.com/pkb/articles/en_US/compatibility/Avid-Software-and-Mac-OS- X-10-8?popup=true&NewLang=en&DocType=1083
    If you continue to have problems, you probably should contact Avid support.
    Regards.

  • Need help w/ setting up ports to run a server for America's Army

    Need help w/ setting up ports to run a server for America's Army. I read wat u need to change the ports but i dont understand wat to put. here is wat the site says
    Q: How do I run my own server?
    A: Quick and dirty server info:
    1. Edit RunServer.bat to change the map.
    2. Run RunServer.bat
    Or:
    server.exe LAN MAPNAME.aao (Host a LAN game)
    server.exe global MAPNAME.aao (Host a Public game)
    Also: When you create a server setup and want to allow other users to join your server, you need make sure the following ports are open for outgoing and incoming traffic in your firewall: 1716 (UDP), 1717 (UDP), 20025-20045 (TCP), and 20047 (TCP). Failure to open these ports will prevent the server from accepting connections from other players or prevent other players from being able to see your server online.
    There are several settings that also need to be defined in your server configuration INI file (in the Windows version, these files are located in “My Documents\America’s Army Server Settings\{settings file name}.ini”).
    [Engine.GameEngine]
    ServerActors=Andromeda.AndromedaMBS
    [Andromeda.Andromeda]
    GameServerIp=
    Make sure that you set the actual IP address of the America’s Army Server under GameServerIp= (for example, “GameServerIp=000.000.000.000”). The supplied address must be your actual internet IP address, if this is left blank or you supply the IP address for your internal network (such as 192.168.0.x), your server will not be able to accept connections from the internet.
    If your server.ini file contains the setting shown below, please change the QueryPort setting to 20025. This setting can also be removed, as the default setting is port 20025.
    [Andromeda.AndromedaMBS]
    QueryPort=20025
    Punkbuster user fix correction.
    If [Engine.GameEngine] block has been changed to read as below:
    [Engine.GameEngine]
    ServerActors=IPDrv.AndromedaMBS
    Please add the following block to your INI file:
    [IpDrv.AndromedaMBS]
    QueryPort=20025
    (Last Updated: 2006-04-20)

    Your images are not stored in the catalog. They are stored in folders on your computer. If you imported images that were already on your computer using the "Add" Option they are still in that same folder. If you imported images from your camera then they are in the folders that you specified when you imported. The catalog points to those images wherever they are located, and records all of the adjustments that you make to the image. When you send an image to Photoshop for further editing and save that image in Photoshop, it is normally saved back in the same folder as the original image.
    Images are not "saved" in Lightroom. The basic default workflow in Lightroom is to store all of the adjustments in the catalog, leaving the original image completely unmodified. The catalog becomes the central controlling mechanism. It is a database that contains pointers to where the images are located and a record of all adjustments made to those images using Lightroom. Properly managed, you only have those original master files and secondary files for the ones that you have sent to Photoshop for further adjustment. When you want to provide a copy for someone else, you use the export dialogue for that purpose. I often export JPEG images to share with others or to post on the web. After I have usedthe JPEG for its intended purpose I delete it.

  • Needing help making a Slideshow in Premiere 7

    Back in 2008 several contributors on this forum helped me make a slideshow using Photoshop Elements 6 and Premiere Elements 4, which I am forever grateful for. It was a long process as I had never made a slideshow before, but after much labor I created a wonderful slideshow of my Alaska photos with music. After a lot of reading I decided to upgrade to Elements and Premiere 7, which I was able to actually do for free.   I purchased the Muvipix.com Guide to Adobe Premiere Elements 7 as I was told this would be a great resource to help me out. Well, here I am two years later trying to make a slideshow again and still as confused as ever. I am trying to make the slideshow in Adobe Premiere Elements, as I was told last time it was easier to do it that way if I wanted to add music to it. I am just getting started and am already confused.
    My first question is: Am I best off making the slide show in Premiere Elements rather than Photoshop Elements? I want to add music to it.
    I have tried using both the book that came with the program and the Muvipix book and I am lost on step one.
    In the Adobe manual it says to deselect the Show Video and Show Audio buttons. Why do I need to deselect these?
    In the Muvipix book it tells me to select a number of clips amd then either right-click on them or click on the ">>" button to access the "Create Slideshow" too.  I can't find the ">>" button. How do I access the the "Create Slideshow" feature?
    I have a question about the stills that show up in the panel. Many actual photos appear in this panel. However, there are also a large group of boxes with two swirling arrows, one green and one red. Why are they there rather than actual photos? I have tried double clicking on a few and they all bring up the same photo folder from "my pictures." I am confused.
    Sorry if my questions seem very basic, but this is not what I do for a living. It is a once every couple of year hobby. Perhaps if I ever get it downpat I will do it more often.
    Thanks for any help you can give me. I am sure I will need a little more handholding. I have been looking for the last two years for a class on this program. I know that is what I need. However, none have been available in my area.

    Thanks for the response Steve. I am hoping it will be easier this time around.
    "If you're seeing empty boxes with swirling arrows in them instead of your photos in the Project panel, it means that the program no longer has access to the photos -- either because they were moved or the device that they were on (your camera?) was disconnected from the computer. You really need to copy these photos to your computer's hard drive if you're going to use them in a project"
    These photos were still on the harddrive. I checked in Photoshop Elements and they needed to get reconnected. Here is what I think happened. When I download my photos, they go into MY PICTURES. When I move them from where they automatically get placed by the program, into a folder of my choice, they seem to get "unconnected". I was able to reconnect them and now they appear in Premiere Elements. Thanks for the tip which actually led me to a solution.
    "There are actually at least four different ways to make a slideshow in Premiere Elements and Photoshop Elements. Each has advantages. Which method are you using? (In all cases, as I say in my book, you should make sure your photos are sized to no larger than 1000x 750 pixels in size before you begin.)"
    I am just starting and I was using Premiere Elements 7. I thought I was told back in 2008 on this forum it was easier to do it all in Premiere Elements if I wanted to add music rather than creating it in Photoshop Elements and then moving it to Premiere. As far as photo size, I am a real beginner here. I have no idea what size they are or where to look to find that out. All I know is that  my Alaska slideshow turned out great and did nothing about changing pixels. Where would I find out how to change pixel size?
    "It sounds like you're using the Create Slideshow tool in the Project media panel. (As I say in Chapter 1, you'll only be able to see the >> menus if you go to the Window drop-down menu and select Show Docking Headers.) You can also access this tool by selecting all of the photos you want to include in the Project panel and right-clicking on them."
    I did read about Show Docking Headers and did follow that instruction. That was the first thing I did, actually. However, when I am in Premiere ELements, I still don't see where I find the Create Slideshow tool that you mention on p. 59. I am a bit confused with this option. I can move the photos I want from the panel to the Timeline, but I am confused as to where the "Create Slideshow Tool" is located.
    Thanks again for your help.I know I will get this done, just very slowly.

  • Need help making a simple script for my webcam

    Hey everyone, fairly new to applescript programming. I just bought a usb camera for my macbook because I use it for video conferencing/playing around, and it is better quality than the built in isight. However, in order to use this camera I need to use drivers from a program called camTwist. This being said camTwist needs to be opened first and the usb camera must be selected from camTwist Step 1 list in order for any other application to use the camera. I just want to make a simple program that would open camTwist first, then select "webcam" from the list (double click it like I always have to in order to select it) in order to activate the driver, and then open photo booth which would then be using the camTwist driver in order to take pictures.
    I made a crude program but it does not automatically select "webcam" from the Step 1 list in camTwist:
    tell application "CamTwist" to activate
    delay 10
    tell application "Photo Booth" to activate
    that’s basically it. I set the delay to 10 seconds so that when camTwists boots up first I can manually select my webcam. HOWEVER, I would like to make a script that would boot up CamTwist first, select my webcam from the list automatically, and then open Photo Booth with the CamTwist webcam driver already selected.
    Don't know much about applescript so any help to make a working script to solve my problem would be greatly appreciated! Thanks!

    Solved my problem but now I need help with something else! First I used CamTwist user options to create user defined hot keys with the specific purpose to load the webcam. I chose Command+B. I tested it out in CamTwist and it worked. The program follows a logical order from there. First it loads CamTwist, then after a short delay it presses the hot keys in order to load the webcam from the video source list, then another short delay and Photo Booth is opened with the driver loaded from camTwist. Everything works Perfect! Here's the code:
    tell application "System Events"
    tell application "CamTwist" to activate
    delay 0.5
    --Press command+b which is a user defined hot key to load webcam
    key code 11 using command down
    end tell
    delay 0.5
    tell application "Photo Booth" to activate
    My Next question is, would it be possible with this same script to have both applications quit together. For example I always quit Photo Booth first, so when I quit photo booth is there a way to make CamTwist also quit and keep everything within the same script? Please let me know. This forum has been very helpful and lead me to a solution to my problem! Hoping I can solve this next problem as well! Thanks everyone.

  • Need Help making a Screencast for IPHONE

    Hello there
    I need some serious help making a screencast for a client - for it's Iphone Apps -
    something similare to this
    http://www.newsluxe.com/chaumet-et-iphone.php
    but more sexy, with a animated background and a different type of cursor.
    Anyideas ?
    I really don't know where to start - I found leads however :
    Camtasia Studio , screenflow, ,
    Maybe you could help me filling the gaps.
    Thanks for your help !

    does anyone know how apple made these forums?
    I think they use Jive:
    http://www.jivesoftware.com/products/forums/
    The Apple way for users to add photos is the .Mac web gallery:
    http://www.apple.com/ilife/iphoto/#webgallery

  • I need help to make this menu?

    This is normal menu, but i have only use Flash for any times,
    i don't know how to make this menu with Action Script in Flash.
    http://i238.photobucket.com/albums/ff189/viczon/Take.jpg
    Please help me! My menu with 2 level, the first cross-bar above
    include Home, Introduce, Products,... and if rovoller on it,
    example as if i rovoller on Product button, will have appear
    products's name below. Thank for help, this menu is more important
    for me to do now, if can please do in Flash and send .fla file for
    me! Thank you..

    Please Help me! I Need it now. Please..

  • Please help- Fireworks CS3 popup menu displaying wrong positions on live page

    Greetings all,
    I am new to Fireworks and my knowledge of html and dreamweaver is pretty basic, So i am learning as I go here. My problem is this: I have created a popup menu for the site http://www.theatricalprojections.com I used Fireworks to edit a .png and position the menus and links that I want. I had everything set up the way I wanted it to look except that when I published the code, the menus are showing up in the wrong postions on the live site, while it works fine when I preview it locally. You'll notice that the menu popping up for the word "consoles" isn't next to the word where it should be.
    I exported the png to an htm file. I then copied this code and I had to paste it into a box in the Able Commerce system we have for managing the site. I suspect the fact that I am insterting the code into a box within this software makes things different though I really have no idea.
    Please help me!
    Ill be glad to post any other info to make this isse more clear
    Jonny

    the design will stay, but thank you. When I left work I uploaded the old version that had menus aligned correctly. right now the new one is up and the some of the menus are way of out place I've been trying to fix this and I have no Idea what to do!

  • I need help making a square that scans across a screen.

    i'm trying to make a program that creates images of a square scanning across a black background.  so far all i have is a program that makes one image where i can alter the size of the square and its position.  I'm very very new to labview and i need help with the structure that would create all the images of the square scanning across and then shift down and scan across again.
    thank you very much,
    Joseph Sadler
    Attachments:
    Drawexample.vi ‏24 KB

    As Lynn found, there is a memory problem with the vi which didn't show up in my limited testing.
    Using Shift Registers with Picture Controls can cause problems.
    See this thread.
    Try the attached "mod" version.
    Then I got to thinking, why redraw the box (2x with "erase") - when you could just move a box around?
    (Note: I used a picture for the box, but you could use other objects.)
    The "mod1" version does it this way.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    squarescan mod.vi ‏20 KB
    squarescan mod 1.vi ‏20 KB

  • I need help making a new Arch install ISO

    I have posted a couple of messages, but as yet no one seems to have responded, probably because they have not read them.
    I need help building a new ISO for Arch, to take account of dmraid.
    I can and have built ones that get so far, and clearly I am not that far away.
    All I need help with now is getting at the contents of the initial ramdisk (/isolinux/initrd.img) so I can make a new one with modifications, and if anyone can help, I need a hand working out how to use the kernel26.img that I will end up with on a system.
    Any help appreaciated.

    As far as I know this will be included in the next ISO release. I solved it by manually bringing the dmraid package to the install and wrote a guide on installing your root system on dmraid. However when the system crashes I have the slight inconvenience of having to install dmraid and manually mount the sets to do a recovery. I guess this is the part you want to get rid of aswell. I decided to wait until the next holy ISO.

  • Help...popup menu problem

    problem with popup menu
    i've designed the poopmenu in firworks...imported the file
    into dreamweaver...but when mouse is over the menu the drop down
    menu goes behind the flash animation placed below it.....how to
    fix?????:

    All Active content on a page will always rise to the top, so
    to speak,
    including Flash, certain form elements, Java applets, and
    Active X controls.
    This means that each of these will poke through layers. There
    is not a good
    cross-browser/platform reliable way to solve this issue, but
    if you can be
    confident in your visitors using IE 5+ or NN6+, then you can
    use the Flash
    wmode parameter (however, Safari does not support this
    properly!).
    Adobe articles:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mister Mustard" <[email protected]> wrote in message
    news:[email protected]..
    > On Fri, 7 Sep 2007 10:32:03 +0000 (UTC),
    "Krutika.deshpande"
    > <[email protected]> wrote:
    >
    >>problem with popup menu
    >> i've designed the poopmenu in firworks...imported
    the file into
    >>dreamweaver...but when mouse is over the menu the
    drop down menu goes
    >>behind
    >>the flash animation placed below it.....how to
    fix?????:
    >
    > There is at least one method that allows content to rise
    above Flash,
    > but I've never used it. You might check the Flash group
    or Google.

Maybe you are looking for

  • Java applet in Mac OS

    Hello. There was a problem in applet under Mac OS. The problem is that if I call the dialog from an applet, then close the dialog applet does not receive the focus and have to again click on the applet. What can I do? Or should we write AppleScript a

  • Restoring from iCloud backup - what happens to non-iTunes music?

    iPhone4, iOS5 and want to restore from an iCloud backup.  Wondering what happens when music not purchased on iTunes (95% of my collection), when I restore from that backup?  I'm thinking it will all be gone and I will have to go through the painful p

  • "save as" is no longer available

    How do I "save as" now with the upgrade to Lion? I've lost old documents trying to make changes and then on restore - lost the new document as well. This was such an important and easy way to make changes easily and still keep the old document. I've

  • F1 Help Performance assistance

    Hi all, Soory this question is out of SD.When i click f1 in any of the fileds the performance assistance is not opening. Help - Settings - F1 Help - in performance assistance is check Have anyone faced this problem.How to solve this

  • How to sync iCal between my iMac, iPad and iPhone? I get duplicate entries

    I have a university Email (with Calendar) and then iCal on my desktop, laptop, ipad and iphone. I am finding that my calendars are not synced at all.. Either I get duplicates or I only get what I put on specific device. BTW- I do NOT have On My Mac c