Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8358725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:53:36+00:00 2026-06-09T10:53:36+00:00

My first script provides to random image as you can see below <script type=text/javascript

  • 0

My first script provides to random image as you can see below

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
    var $t = jQuery.noConflict();
    $t(function () {
        $t('.slideshow').cycle({
            fx: 'fade' 
        });
    });
</script>

It works when I add some images like that

<div class="news_area_left">
     <div class="slideshow" style="position: relative; ">
        <img src="../../banner_image/nemo.jpg" width="154px" height="108px"/>
  <img src="../../banner_image/up.jpg" width="154px" height="108px" />

</div>
    </div> 

But when I add my second script which get images as you can see

<script type="text/javascript">

    $(function () {

        $.ajax({
            type: "get", url: "Home/Oku", data: {}, dataType: "json",
            success: function (data) {

                for (var i = 0; i < data.length; i++) {

                   var newFirmDiv= $(' <img src="../../banner_image/' + data[i] + '" width="154px" height="108px"/>');
                    $(".slideshow").append(newFirmDiv);

                }
            }
        });
    });

</script>

Finally I try to use my dynamic images in my “slideshow div” but the effect does not work

<div class="news_area_left">
     <div class="slideshow" style="position: relative; ">
       </div>
    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:53:37+00:00Added an answer on June 9, 2026 at 10:53 am

    You need to run $t('.slideshow').cycle after you have dynamically inserted your images. Also you need to append to the “slideshow” class and not the “firmShowCase” class.

    See this jsFiddle I’ve created http://jsfiddle.net/davew9999/sgUeq/

    HTML

    <div class="news_area_left">
         <div class="slideshow" style="position: relative; ">
             <img src="http://activephilosophy.files.wordpress.com/2009/09/number1.jpg" width="154px" height="108px"/>
             <img src="http://www.clker.com/cliparts/h/Y/i/C/Y/W/red-rounded-square-with-number-2-md.png" width="154px" height="108px"/>
         </div>
    </div>​
    

    JavaScript

    var $t = jQuery.noConflict();
    
    var newFirmDiv = $t('<img src="http://www.mosamuse.com/wp-content/uploads/2012/05/number3.png" width="154px" height="108px"/>');
    $t(".slideshow").append(newFirmDiv);
    
    var anotherDiv = $t('<img src="http://2.bp.blogspot.com/-_A_8UYb0zIQ/Te5lpI9iZ3I/AAAAAAABgWk/sErDyHjEhPw/s1600/number-4.jpg" width="154px" height="108px"/>');
    $t(".slideshow").append(anotherDiv);
    
    $t(function() {
        $t('.slideshow').cycle({
            fx: 'fade'
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

aspx script: <script type=text/javascript> $(document).ready(function() { $(.div_soru).hide(); $(.div_soru).first().show(); $(.onceki).click(function() { if ($(this).closest(.div_soru).prev(.div_soru).html() != null)
<input type=text value=click onclick=textClicked()> <script> function textClicked() { document.write(‘Text clicked’); } </script> OR <input
I have two scripts that are called in one program, the first script creates
This is the first Python script I've tried to create. I'm reading a xml
This is my first Bash script so forgive me if this question is trivial.
I recently created my first bash script, and I am having problems perfecting it's
I am trying to write my very first python script. This was working but
I have the following script which first shows only the first para of the
First steps in FreeBSD: trying to run my installation script. Fast help needed: #
First, the set up: I have a script that executes several tasks after a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.