I have found a jquery plugin that does exactly what I want it to do except for one thing. It doesnt display a text description underneath the full size image.
I am trying to have text that is placed over an image cross fade into another image with text placed over it. I am using jquery and the images are cross fading perfectly. The text isn't working so well and in Firefox it seems to be very choppy and even sometimes the text just disappears and then there is a blank slide without any text or the text is showing up on the wrong image. Here is the code I have so far:
HTML Code: <div id="slides"> <div class="slide"> <img src="_images/placeholder3.jpg" width="695" height="195" alt="A Passion for Service" /> <div class="slideText"> <h1>And A Different Heading</h1> <p>With the appropriate solution for each client, we provide biomedical engineering and information technology services to suit your needs.</p> [Code]...
I am new to jquery and am going through the Sitepoint book "JQuery: Novice to Ninja. I am using the crossfade code from the book and I tried to apply it to the text as well.
I am using a simple slideshow script. I have a div on top of the image that contains text. I'd like the slide to forward to the next slide in the slideshow when the user clicks on that div (#slideshow-caption). Here's the code with the .click call. If you see anything else funky with the script, let me know.
function slideShow(speed) { //append a LI item to the UL list for displaying caption $j('ul.slideshow').append('<li id="slideshow-caption" class="caption"><div class="slideshow-caption-container"><h3></h3><p></p></div></li>');
I am trying to adapt the addSlide demo 5 [URL] but instead of using buttons created by css I wish to use images.
So I'm largely okay with that, have found the #nav container and defined my background-image images but these are overwritten by textual digits and I'm not sure where these are generated from. Most likely something in my main.js file though I can't figure out what exactly. I'm using cycle as follows:
$(function() { var stack = []; // preload images into an array for (var i = 3; i < 5; i++) {
I'm very new at this. I'm using jquery within wordpress and I've created an image slideshow with captions. It worked fine. Now I want to include a slide counter. I followed the example here as best I could: [URL]...
This is the code I have:
<script type="text/javascript"> var $j = jQuery.noConflict(); $j(document).ready(function() { $j('#ng_slideshow').cycle({
In my website I have a slideshow that is working properly with this jQuery code: Code: $(function(){$('.fadein img:gt(0)').hide(); setInterval(function(){ $('.fadein :first-child').fadeOut(2000) .next('img').fadeIn(2000) .end().appendTo('.fadein');}, 5000); });
In another page I call one HTML file by the function .load with some imgs sources exactly as I have in my main page slideshow that is working well. The problem is that this last slideshow (that I call the images with the .load function) is not working properly as you can see here (too hard to explain, better just see, 1st thumbnail). I call the HTML file with this code: Code: $('#hab_ab').click(function(){ $('#target').removeClass('thumbs').load('slideshows/arq/hab/boavista/ab_ss.html'); I use .removeClass because of the positioning...
So Im trying to create a slideshow with thumbnails the user can scroll through and use to navigate the slideshow. I'm a big fan of cycle so I wanted to use that as my main slideshow component and was planning on using jcarousel for the pager. So far it works great in Firefox, Chrome, and Safari, yet in IE the thumbnails are not loading. I'm guessing it has something to do with how the images in the pager are generated and then jcarousel just isnt proccessing that in IE but I 'm not sure. I feel like I'm very close to getting this slideshow to work, yet I need to figure out why it is failing in IE.
I am using a simple prototype slideshow and a more comprehensive jquery slideshow on my website.When these are used on the same webpage on my website there appears to be a collision: (For example)Code:element.attachEvent is not a function[Break on this error] element.attachEvent("on" + actualEventName, responder); How can I avoid the conflict without reverting to a new slideshow?
I used the tutorial here to create a slideshow but would like to add captions... with the code? Below is part of the script I used... (there are 27 images so I cut it short...
My code works great except that the margin and padding CSS isn't doing anything. Which doesn't make sense to me because the font size, style, and alignment is affected by the CSS. Does anyone know why this is??
If I were to using single images, I would use CSS 'float left' to have my text appear on the right side of the image, but with JS I cannot seem to do this.
My text drops below the slideshow and then I have this ugly white area to the right of my slideshow. I have tried MANY scripts and just cannot figure this one out.
The script I am using now has the main scripting in the <head> section, but this is what I have going on in the <body>:
I am new in web development. I think this problem is related to javascript, I have write script which will change images after 2sec, through setInterval function. Script is as follows.
<script> var images = new Array ("img/1.jpg", "img/2.jpg", "img/3.jpg"); var currentIndex = 0; function Start(){ setInterval("ChangeImage()", 2000); }function ChangeImage(){ currentIndex++; if(currentIndex == images.length){ currentIndex = 0; } document.images[0].src = images[currentIndex]; } </script>
But when I place in img tag which is in third row div and reload page, these series of images show in first row div. It does not show where I have specified area for it in css.
First row div: <div id="menu"> <img src="header/menu.png" name="menuImg"/> </div> My series of images show in this div when I load page.
I found a piece of code that helps me out a lot at [URL] It allows an image to crossfade into another, into another, etc.
I'd like to be able to crossfade an image, with a text caption underneath it, to crossfade into a different image with different text, into another, etc.
I think doing this may have something to do with putting the image and caption into a <div>, and then changing the code to swap the first <div> into the next, into the next.
The code identifies the images as 1.jpg, 2.jpg, 3.jpg, etc. It would be awesome if the captions could come from 1.txt, 2.txt, 3.txt, etc.
If Javascript can't call up .txt files, then the captions could be put inside the current web page into a table that is set to be hidden (display: none).
The reason I want to use Javascript is because I do not wish to use anything that will make visitors have to have additional software (like Java or Flash). Additionally, it is not a problem if they have Javascrpt disabled, because then they'll just see the first image with the first caption, which is fine. I can't use anything like PHP or PERL because I have very little control over the server.
Here is the original code:
========================================================== Script: JavaScript Cross-Browser SlideShow Script With Cross-Fade Effect between Images Adjustable Timing and Unlimited Images Function: Displays images continuously in a slideshow
I found this Javascript - it can make a slideshow with transitions, but it starts over from the beginning when it reaches the end. Is it possible to re-code the script, so it won't repeat but just stay at the last picture at the end?
I am trying to create a slideshow. My requirements are as follows:
-variable image size -descriptor text for each image -previous and next image function (I have used an image in my code by have decided that I would now prefer a text link)
Here is the code I have so far, currently the image and text is not changing!
I m having a text data of around 6 page length in a text editor...I want to print dat data using window.print. For that i displayed dat data in a html page and used window.print(). Bt my client wants dat some line spaces shud be inserted first in the starting of the page and on the second page also...After that the printing shud be normal... How can i set the page in such a format...?
i have in my code a box called "box1". When the user clicks inside the "box1", a function called "showWidth()" returns the element and the wifth of the element. The function has 2 paramaters:
1) ele (element)
2) w (width)
in this line, how am i supposed to use the "ele" with text.() ?? ele.text("The width for the " + ele + " is " + w + "px."); /* PROBLEM HERE!!!! */
In order for this to work i do: $("#box1").text("The width for the " + ele + " is " + w + "px."); but if i have many different boxes with different ids, i can't create so many functions and have:
Working with a script I had found/pieced together online. It toggles the display of certain content along with selected text (i.e., "view/hide"). It's working great in all browsers except for IE7 (go figure). The showing and hiding of the content works, just not the switching out of the values for "show/hide".
I work on a website and the client wants jQuery on the menu. When a user clicks on "webdesign" link menu a shadow goes down with some text on it(you can try it).Right now when I click on that webdesign menu link, the other one "ipone apps" goes down too, but the owner doesn't like this. He likes that shadow, but he doesn't want to see that other menu link to be moved when he clicks on other menu link.
I am trying to create some code so that when you click on a letter or word within a <span> area, it changes color. The span area is defined by a class .e1 Below is what I have so far, I can get the text to change color on the first click, but will not change back.
I've got an image for the Name & Email field in a form I've made. On click, I've got the images fade out, and replaced with the text field. The problem I have, is having the cursor go in the text field. I know it works if the text field was there when I click on it, but because clicking causes an event to put it in, it does't act like I clicked on the text field. So what I'm looking to do is at the end of the replaceWith(#name_field), I want it to simulate a click so that the cursor would automatically be in there.
Here is my js... $("#name_img").click -> $(this).fadeOut("slow").replaceWith $("#name_form") $("#name_form").fadeIn "slow"
All the function extending I see extends on an _object_. I want to extend on a string. /** * Returns a slug version of a string */ jQuery.extend ({ slug: function( text ) { return text.trim().toLowerCase().replace( /[^-a-zA-Z0-9s]/g,'' ).replace( /[s]/g, '-' ); }}); I want to be able to do something like: $('#form_element').val().slug(); The above does not work. I even tried modifying the 'trim' function in jQuery core to include the rest of the enhancements, but it didn't work.
How can I track what is written to an input field on the fly(event that is not "click" "hover" etc but something like "track" or "observe")?Lets say I have a js object like this:
var array1 = {id1: 'keyword', id2: 'execute', id3: 'go'};