The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> gallery not functioning
jessamca
post Mar 18 2012, 12:27 PM
Post #1





Group: Members
Posts: 1
Joined: 18-March 12
Member No.: 16,736



I am trying to make a web gallery using the following code on my blog, and the thumbnail images will not load. I tried it out another a blank blog, and it worked fine, so I know I must have something embedded on my site that is preventing it from working. Any recommendations on what to change?

My website is www.lookbookcookbook.com

Many thanks

CODE
<div id="content">
<script type="text/javascript">
    function myshowImages(id) {

         /**$(".bigPic").hide();
            $("#pic-"+id).show();*/
            $('.bigPic').css({'display':'none'});
            $("#pic-"+id).fadeIn('slow');

    }
</script>
<script>
    $(document).ready(function () {
        $('.email-sign-up').css({'marginBottom':'0px'});        
    })
</script>

<div class="product">
    <div class="galerie">
        <div class="bigPics">
            <a href="insert" target="_blank">
                <img src="insert" title="" alt="" id="pic-0" width="450" height="450" class="bigPic" name="bigPic"  />
            </a>
            <a href="insert" target="_blank">
                <img src="insert" title="" alt="" id="pic-1" width="450" height="450" class="bigPic" name="bigPic" style="display:none;" />
            </a>
        </div>

        <div class="thumbnails">
            <div class="mini-thumb">
                <a href="java script:myshowImages(0)" >
                    <img src="insert" title="" alt="" />
                </a>
            </div>
            <div class="mini-thumb">
                <a href="java script:myshowImages(1)" >
                     <img src="insert" title="" alt="" />
                </a>
            </div>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 18 2012, 12:43 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



It looks like you use JQuery. I don't know much about that, but are almost all URLs really meant to be "insert"? All the values of href and src that doesn't use a javascript URL.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 10:55 PM