473,657 Members | 2,316 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 9528
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="javas cript">

<MARQUEE bgcolor="red" direction="righ t" width="100%">
<a href="http:\\ww w.thinkdigit.co m"><Img src="D:\web\unt itled.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=javascrip t]
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
3603
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 purpose is to get the position of the mouse pointer on the bitmap. However, for some reason, the left (I also tried right) mouse clicks are not intercepted. I new to Python and wxWindows so any help would be greatly appreciated.
11
5101
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 Microsoft.VisualBasic
3
2757
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 the two buttons. Once the user clicks on the linkbutton a javascript dialog box popsup that says "Is the Lessee buying this vehicle?" and with two buttons "Yes" and "No". If user clicks "yes" it should go to DealerQuestions.aspx" and if "No" it...
8
4621
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, Right, Middle, None, XButton1 and XButton2. I am using .NET 1.1 version. How can i convert "3145728" to MouseButtons Enum? why Mouse Left+Right click not added to the Enum? Can anyone help me?
2
9416
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 how to do this but i think it is possible. i can place a button on my excel sheet but i don't know how to code it so that when clicked, it can toggle hide/unhide of rows 3 to 5. does anyone know how to do this? can you supply me the simple code?...
4
3331
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 right click the link & click save as
16
4090
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", or "software emulated d-pad". I'm newbie in programming, and I'm using Visual Studio 2008. Some one can help me with that? Tanks. My effort for it only result in this simple code lines:
1
1622
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. http://www.airfirst.ch/b1/album_im.html (IMAGE MAP version) http://www.airfirst.ch/b1/album_div.html (DIV version) B. NAVIGATION - 2 half sensitive zones on each picture. - Click on the left/right image side to go up/down.
2
3996
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 me? $array1 = array("A"=>'A.php',"B"=>'B.php', "C"=>'C,"D"=>'D.php',"E"=>'E.php',"F"=>'F.php'); $arraypre = array(); switch ($type){ case "User1":$arraypre = array('G'=>'G.php','H'=>"H.php",'I'=>"I.php");break; case...
0
8411
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
8323
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
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
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
7351
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
4173
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...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
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
2
1732
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.