473,503 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Move images left to right continuously; images link to JSP pages when clicked

86 New Member
i have few images say 10.

i want to make a web page such that these images constantly move from left to right direction and if we click on a particular image then the corresponding jsp page must be loaded.
how should i approach for this?

give me an idea please....
Oct 22 '07 #1
5 9517
r035198x
13,262 MVP
i have few images say 10.

i want to make a web page such that these images constantly move from left to right direction and if we click on a particular image then the corresponding jsp page must be loaded.
how should i approach for this?

give me an idea please....
The appropriate way of doing this is through some HTML/Javascript so I've moved this to the Javascript forum.
Oct 22 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
To move from left to right, you will need to change the style.left property. Use setInterval for the timing. Link the image and put it inside a div. You can change the left property like this, for example:
Expand|Select|Wrap|Line Numbers
  1. div.style.left = (parseInt(div.style.left) + 5) + "px";
Post your code so far.
Oct 22 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Changed the thread title to better describe the question.
Oct 22 '07 #4
ravindarjobs
86 New Member
the following sample code moves a single image from left to right and it is assigned to some link say "www.thinkdigit.com" or else some jsp page

[HTML]<html>
<title> move images </title>
<body>
<script language="javascript">

<MARQUEE bgcolor="red" direction="right" width="100%">
<a href="http:\\www.thinkdigit.com"><Img src="D:\web\untitled.jpg" height=60 widht=20 ></a>
</MARQUEE>
</script>
<body>
</html>[/HTML]

now my requirement is i want few images say 10 to be moved in the same line one after other and each image will be linked to some page.

how can i do this?
Oct 24 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
Please use code tags when posting code:
[CODE=javascript]
Your JavaScript would go here..
[/code]

You would be better off using JavaScript for this rather than the non-standard marquee tag. Try implementing for one image in JavaScript (look at my previous post) and then move onto extending it for 10 images.
Oct 24 '07 #6

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

Similar topics

3
3591
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
11
5090
by: Bruce A. Julseth | last post by:
I have: If (Microsoft.VisualBasic.Left(TextBox1.Text, 1) = "$") Then TextBox1.Text = Microsoft.VisualBasic.Right(TextBox1.Text, TextBox1.Text.Length - 1) End If Adding: Imports...
3
2737
by: Learner | last post by:
Hello, I have two buttons on one of my VehicleDetails.aspx page. Obiviously these two buttons takes the user to two different pages. Now my client is interested in having a linkbutton instead of...
8
4599
by: Chaitanya | last post by:
Hello, In my Application i want to know when user clicks both the "Left" and "Right" buttons of the Mouse. I am getting a number like this "3145728". But the MouseButtons Enum contains only Left,...
2
9406
nev
by: nev | last post by:
first of all, i'm not sure if this is the correct forum to post this question. please move if ever. the reason i placed it here is because you can create visual basic code in excel. i don't know...
4
3322
w33nie
by: w33nie | last post by:
I was wondering what I would need to do to make a link, when clicked, download an image with the save as window, instead of just loading the image inside the browser. I also don't want to have to...
16
4078
by: ImpactMan | last post by:
Need help to create an windows mobile application with a few buttons that when they are pressed/clicked they assign keys, like up, down, left, right. It is just like to create a "virtual d-pad",...
1
1620
by: samz | last post by:
Hello, A. CONTEXT My album is generated by a batch script, but DOS cannot get the size of an image file. So, the a unique picture size is defined in the script....
2
3985
by: ghjk | last post by:
In my php web site I have left pannel which is having links to all pages. I want to change link color or background color when clicked. How can I do that? This is my current code. Could someone help...
0
7205
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,...
0
7093
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...
1
7011
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...
0
7468
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...
0
5596
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,...
1
5023
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...
0
3180
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...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
401
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...

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.