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 6729177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:15:30+00:00 2026-05-26T10:15:30+00:00

<script type=text/javascript src=js/jquery-1.3.1.min></script> <script type=text/javascript> $(document).ready(function() { //Execute the slideShow slideShow(); }); function slideShow()

  • 0
<script type="text/javascript" src="js/jquery-1.3.1.min"></script>

<script type="text/javascript">
$(document).ready(function() {      
//Execute the slideShow
slideShow();
 });

    function slideShow() {

//Set the opacity of all images to 0
$('#gallery a').css({opacity: 0.0});

//Get the first image and display it (set it to full opacity)
$('#gallery a:first').css({opacity: 1.0});

//Set the caption background to semi-transparent
$('#gallery .caption').css({opacity: 0.7});

//Resize the width of the caption according to the image width
$('#gallery .caption').css({width: $('#gallery a').find('img').css('width')});

//Get the caption of the first image from REL attribute and display it
$('#gallery .content').html($('#gallery a:first').find('img').attr('rel'))
.animate({opacity: 0.7}, 400);

//Call the gallery function to run the slideshow, 6000 = change to next image after 6 seconds
setInterval('gallery()',6000);

}

 function gallery() {

//if no IMGs have the show class, grab the first image
var current = ($('#gallery a.show')?  $('#gallery a.show') : $('#gallery a:first'));

//Get next image, if it reached the end of the slideshow, rotate it back to the first image
var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#gallery a:first') :current.next()) : $('#gallery a:first'));   

//Get next image caption
var caption = next.find('img').attr('rel'); 

//Set the fade in effect for the next image, show class has higher z-index
next.css({opacity: 0.0})
.addClass('show')
.animate({opacity: 1.0}, 1000);

//Hide the current image
current.animate({opacity: 0.0}, 1000)
.removeClass('show');

//Set the opacity to 0 and height to 1px
$('#gallery .caption').animate({opacity: 0.0}, { queue:false, duration:0     }).animate({height: '1px'}, { queue:true, duration:300 }); 

//Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
$('#gallery .caption').animate({opacity: 0.7},100 ).animate({height: '180px'},500   );

//Display the content
$('#gallery .content').html(caption);


     }

</script>
<style type="text/css">
body{
font-family:arial
}

.clear {
clear:both
}

#gallery {
position:relative;
height:360px
} 
#gallery a {
    float:left;
    position:absolute;
}

#gallery a img {
    border:none;
}

#gallery a.show {
    z-index:500
}

#gallery .caption {
    z-index:600; 
    background-color:#000; 
    color:#ffffff; 
    height:180px; 
    width:100%; 
    position:absolute;
    bottom:0;
    top: 358px;

}

#gallery .caption .content {
    margin:5px
}

#gallery .caption .content h3 {
    margin:0;
    padding:0;
    color:#1DCCEF;
}

<h1></h1>
<div id="gallery">

<a href="#" class="show">
    <img src="images/2.png" alt="Grass Blades" width="940" height="360"     title="" alt="" rel="<h3>Title</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur lobortis interdum     sem, sit amet dictum nisi imperdiet id. Sed augue massa, luctus vel condimentum sed,     vestibulum vehicula dolor. Nulla convallis, ligula in ultricies lacinia, libero neque     blandit neque, a semper diam ante vitae sem.**<a href="">link</a>**"/>
    </a>

i need to add a link in the rel attribute
the above said thing is not working.
so that when a link can be given in the description at present it is in rel
above as mentioned

so what to do actually this is a slider i am working for building up my website

  • 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-05-26T10:15:30+00:00Added an answer on May 26, 2026 at 10:15 am

    use single quotes in the rel attribute otherwise you are closing the attribute, which leads to invalid HTML

    <a href="#" class="show">
        <img src="images/2.png" alt="Grass Blades" width="940" height="360"     title="" alt="" rel="<h3>Title</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur lobortis interdum     sem, sit amet dictum nisi imperdiet id. Sed augue massa, luctus vel condimentum sed,     vestibulum vehicula dolor. Nulla convallis, ligula in ultricies lacinia, libero neque     blandit neque, a semper diam ante vitae sem.**<a href='LINK'>link</a>**"/>
    </a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<script src=jquery-1.5.2.min.js type=text/javascript> $(document).ready(function(){ $.ajax({ type: GET, url: http://rama.inescporto.pt/app/api/, data: method=getGraph&artist=Coldplay&ri=3&p=3&d=0.5, dataType: xml, success:
My script isn't getting data from JSON: <script type=text/javascript src=jquery-1.7.min.js></script> <script type=text/javascript> $(document).ready(function ()
<script type=text/javascript> function testing() { $.ajax({ type: POST, url: testing.php, data: call=+$(#abc).val(), success: function(msg){
I have a jQuery script: $.ajax({ url: /scripts/secure/development/ajax.asp, type: POST, dataType: text, data: cmd=addresses,
look at this code, <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <script> function change() {
When using an importjs() type of function (see below for an example), jQuery doesn't
I'm adding some <script/> tags from javascript to load some libraries (e.g., jquery). When
Debugging one of my projects I noticed another developer had changed the $(document).ready() function
I got this error after validation: document type does not allow element script here;
I was wondering if anyone here had some experience writing this type of script

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.