Question:
Changing this gallery javascript..?
anonymous
2009-12-16 02:00:32 UTC
at the moment the script allows you to click on the thumbnail to view the image again but larger, is it possible to change this so you click on the image and view a different one? here is the script. (ps i have changed sizes etc...
















  • /* general styling for this example */
    * { margin: 0; padding: 0; }
    body { padding: 20px; }
    /* begin gallery styling */
    #jgal { list-style: none; width: 200px; }
    #jgal li { opacity: .5; float: right; display: block; width: 195px; height: 105px; left:100px; background-position: 50% 50%; cursor: pointer; border: 3px solid #fff; outline: 1px solid #ddd; margin-left: 65px; margin-bottom: 8px; }
    #jgal li img { position: absolute; top: 280px; left: 660px; display: none; border: 3px solid #fff; outline: 1px solid #ddd; }
    #jgal li.active img { display: block; }
    #jgal li.active, #jgal li:hover { outline-color: #bbb; opacity: .99 /* safari bug */ }

    /* styling without javascript */
    #gallery { list-style: none; display: block; }
    #gallery li { float: left; margin: 0 10px 10px 0; }

    Three answers:
    goldthorpe
    2016-10-31 05:49:59 UTC
    Um...you're actually not being very specific. How precisely are you doing this? Do the travelers navigate from one website to a various and you only prefer to try this greater fairly than having to set the colour on the textual content fabric of each and every guy or woman website, or are the photos being displayed dynamically on single website utilising Javascript? the two way it may be particularly elementary to try this, besides the undeniable fact that i won't be able to truly assist you with specifics till i understand greater precisely what it fairly is you're doing.
    ?
    2009-12-16 02:08:57 UTC
    What's wrong with Hair tonic (possibly by Brylcreem or Old Spice)? I take for granted a styling is indecorous for that
    ?
    2009-12-16 02:03:30 UTC
    We can help you out if you would like to post your code over on our help forum that way it's better formatted and easier to read: http://www.devhelpforums.com/viewforum.php?f=25


    This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
    Loading...