473,623 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling images with paragraph

7 New Member
Hi,
I'm found a JS to have a series of scrolling images, and have it working.

But I would like to add a paragraph below each image that also changes with each specific image.

Can this be done?
Below is the script.

Thanks for your help
Can

[HTML]<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="ima ges/img4.jpg"
var image2=new Image()
image2.src="ima ges/img7.jpg"
var image3=new Image()
image3.src="ima ges/img5.jpg"
var image4=new Image()
image4.src="ima ges/rr4.jpg"
var image5=new Image()
image5.src="ima ges/rr7.jpg"
var image6=new Image()
image6.src="ima ges/img2.jpg"
//-->
</script>
</head>
<body>
<img src="images/img4.jpg" name="slide" width=280 height=250 />
<script type="text/javascript">
<!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.imag es)
return
document.images .slide.src=eval ("image"+step+" .src")
if (step<6)
step++
else
step=1
//call function "slideit()" every 2.0 seconds
setTimeout("sli deit()",2000)
}
slideit()
//-->
</script>
</body>[/HTML]
Oct 25 '07 #1
1 2010
acoder
16,027 Recognized Expert Moderator MVP
Store the paragraphs in array and access them using the same variable that you use for the images.
Oct 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
2578
by: Giuseppe Dini | last post by:
I'm looking desperatle for a javascript that allow me to show a few small images scrolling horizzontaly on the screen from right to left. I'm sure I've seen a lot of time such a script, but now I can't find it again. hope someone help me
7
11056
by: bbxrider | last post by:
there is some property that i think is mostly used for images used as backrounds that fades them, so you can get the idea of the image but not have it obscuring the text thats on it, its not trasparency i have been going nuts trying to find it, i'm sure i've seen it described somewhere on the w3c site but embarrassed to say can't find it again hopefully somebody knows this or maybe i'm going crazy
5
1301
by: John | last post by:
I get a 'divide by zero' exception when I scroll in a subdirectory of 'My Pictures'. This subdirectory is full of .ico, .bmp, .png files that I use for button images in my Windows Forms projects. No viruses are found. This has been occurring for a year now... I don't know if it is a specific file, or just the rendering of the files to produce icons for the display in Explorer.exe that is the cause. Anyone have suggestions for me?
3
10859
by: Justin England | last post by:
Background: I am working for a client putting a textbook online. The layout of the textbook is straight forward and is easy enough to style with <h?>, <p>, <uland <oltags. The text book also contains small images of a key that represent a key point within the text. In the printed book, these keys are positioned to the left of the text (in the margins if you will) and some paragraphs may have more than one key. It is important to the...
2
2029
by: gunnuk | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>WELCOME TO HEMA CREATIVE HOUSE</title> <style type="text/css"> <!-- @import url("css/IDESIGN 1.css"); @import url("css/IDESIGN.2.css"); body {
1
2242
by: can2564 | last post by:
Help I found some code for scrolling images and now want to have a paragraph below each image that changes with each image... But not sure how. This is the scrolling code I'm using and it works, but now need to add a paragraph below or beside the images that will change with each image. Thanks Can <head>
1
9251
by: lennyc | last post by:
I would like to make a simple auto scroll of images with little user interactioin. It would be images moving horizontally in a continuous loop that stops on mouse over and starts up again on mouse out. I have been able to do this with a tween but it is not smooth. I have found may examples with thumbnails scrolling that click to bigger images etc. but nothing as simple as what I'm looking for. Can anyone point me in the direction of a tutorial...
1
2446
by: bealoid | last post by:
This wikipedia user: http://en.wikipedia.org/wiki/User:Miranda has a png image in the lower right of their screen. How can I acheive a similar effect on my own (not wiki) page, (using my own images)?
5
13347
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8165
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8613
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8469
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4074
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.