473,788 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I...scroll paragraph

7 New Member
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>
<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>
<div id="main">

<div id="scroll">
<p>The Deans at play...</p>
<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>


</div>
<hr />
</div>
Oct 25 '07 #1
1 2248
xNephilimx
213 Recognized Expert New Member
I think you missed the forum.
This is the Flash/ActionScript Forum

Your question belongs to the JavaScript Forum

Best regards,
The_Nephilim

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>
<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>
<div id="main">

<div id="scroll">
<p>The Deans at play...</p>
<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>


</div>
<hr />
</div>
Oct 26 '07 #2

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

Similar topics

3
3992
by: Devonish | last post by:
I have a form designed as a Continuous form which displays one record per line. Taking account of the header and footer and the size of the screen, I can display 30 records at a time. I can see other records by scrolling up or down with either the scroll bar on the right of the screen, or the up and down arrows which are above and below this scroll bar; or I can use the scroll wheel
0
1224
by: Danielle | last post by:
This article here support.microsoft.com/support/kb/articles/q155/9/18.asp shows how to add scrolling to a CFormView. Its a shor paragraph of code. It works, but when I keep the progra with the scrolling open and then click another program I get an error at this line if (GetFocus()->m_hWnd == pWnd->m_hWnd
1
1483
by: Jean-François Michaud | last post by:
Hello people, I was wondering how it I could implement keep with next logic on lines of text contained within a paragraph. I need to have at least 10 lines of text within a paragraph to be keep together on the first page if we are to split the flow of the paragraph across 2 pages. If it can't be done, the whole paragraph has to cross over.
1
1429
by: abhas59 | last post by:
hi friends, I want to serialize a System.Windows.Documents.Paragraph and for this I have written the following code in the application : mypara cust = new mypara(); Paragraph ph = new Paragraph(new Run(str)); cust.Para = ph; cust.Para.Foreground = System.Windows.Media.Brushes.AliceBlue; string pass = format.Serialize(cust.Para); mypara is a custom class...
6
10706
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value = m_vScrollBar.Maximum; The scroll bar is set to start from the bottom.
1
3172
by: John L. | last post by:
How do I invoke the scroll() method of a window object for a scrollable IFRAME element in an HTML document? I am using IE 7.0, and I thought the following would work: document.frame01.scroll(x,y) or possibly document.getElementById('frame01').scroll(x,y)
3
2319
by: gentsquash | last post by:
I'm trying to display a paragraph that has a centered phrase, such as this one, in the middle of the paragraph. An example is the section "End of semester project" on my course-page http://www.math.ufl.edu/~squash/course.calc3.html
6
2031
by: Haines Brown | last post by:
I'm trying to resolve a contradictory situation in which I have rows going down a page, and each consists of two elements: to the left is a thumbnail image that is a hot link; to its right is a brief descriptive paragraph. The contradiction is that if I float the image to the left, the text in the paragraph is shifted right in its the paragraph box by the amount of the image width; if I put the text where I want it closer to the image...
0
9656
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
9498
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
10173
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
10110
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
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
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
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
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.