Image Scroller?

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Image Scroller?

Mario
does anybody know where i can find a image scroller script? scrolling up and down?

Reply

hulunes
QUOTE(Mario @ Sep 17 2004, 08:58 PM)
does anybody know where i can find a image scroller script? scrolling up and down?

it's a great idea and i'd like to know how to work like other javascript .you must know the spring menu javascript . dry.gif

Reply

sanweikui
CODE

<script language="JavaScript">
<!----
var x = 5
var y = 5
var change = 10
var img, img_top,img_left

function move(){
if(document.layers)
{
img = eval("document.image")
img.top = img.top + x
img.left = img.left + y
if(img_top >= window.innerHeight) x = -x
if(img_left >= window.innerWidth) y= -y
if(img_top <= 0) x = 5
if(img_left <= 0) y = 5
}

else
{
img = eval("image.style")
img.posTop = img.posTop + x
img.posLeft = img.posLeft + y
img_top = img.posTop
img_left = img.posLeft
if(img_top >= document.body.clientHeight) x = -x
if(img_left >= document.body.clientWidth) y= -y
if(img_top <= 0) x = 5
if(img_left <= 0) y = 5
}

SetTimeout("move()", change) }
//---->
</SCRIPT>


method:
1.put the code between <body> and </body>
2.change these to yours
var x = 5 //horizontal distance
var y = 5 //vertical distance
var change = 10 //time to change,more big more slower

3.use these codes to refers to your javescript between <body> and </body>
<DIV id="image" style="position: absolute;">
<img src="move.gif" alt="moving gif">
</DIV>

4.rewrite your <body> like this:
<BODY onload="setTimeout('move()', 10)">

then,enjoy!

 

 

 


Reply

Spectre
Please make sure you include where you got the script from if you are going to post [presumedly] copied source code.

Reply

avy
never heard of such a thing. u can change the color of the scroll bar but im not sure you can make it into an image. u have made windows that have something like that but note sure thats what u want. ill try to find the link and post it if the other code someoneelse put doesn't work for you

Reply

sanweikui
to Spectre:
What you said is for the copyright resion?

Reply

inshare
go to http://www.hotscripts.com/ and see if you can find it.I think it´s the BEST website of this kind

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. image, up, down scroller - 831.79 hr back. (2)
Similar Topics

Keywords : image, scroller

  1. Image Rotater
    need help (2)
  2. Text Image Java Problem
    How to include text and image in some scrollable container? (1)
    Hello everyone, I am just writing some kind of text editor as practice for some school project and I
    have come to certain point where I can not solve certain problem. I wanted to make it available
    for people to insert images but I cannot figure how to combine images and text and which container
    should I use. I am working in Java and using swing. Also I would like to say that this content
    should be scrollable. So if anyone knows something about this and could be able to help me thanks in
    advance. Everyone opinion is accepted.....
  3. How To Make This Type Of Link?
    Image change on mouseover (1)
    I cant figure out how to solve this problem.... I want to make link to be like this: When the page
    is loaded to have a pictures on it, but one picture is a link. I want to make this picture to change
    when I get my mouse cursor over her... I mean: when my mouse cursor is not on a picture then on page
    is loaded a "pic1.gif" file, but when my mouse cursor is over it, picture changes to a "pic2.gif".
    Thanks for help!....
  4. News Scroller
    (0)
    Does anybody know of a website news scroller that can be used multiple times on the same page.
    I'm woking on V3 of my website but can't find the scrollers.....
  5. Expanding Image Gallery
    Images Expanding on a mousover (6)
    I was looking through wired today, and i noticed :
    http://www.hotwired.com/webmonkey/06/08/index2a.html looks like a pretty nifty image gallery
    effect, though i noticed that it wont display properly in FireFox. Does anyone have any links or
    examples of other image gallery code, i find it pretty fascinating.....
  6. Countdown Code Help
    I need help setting an image as the background. (3)
    Ok, now for scripts like this i am not to well of working with..and i am in need of a bit of help, i
    would like to set a background image as the background not a color... CODE <script
    language="JavaScript1.2"> /* Dynamic countdown Script- © Dynamic Drive
    (www.dynamicdrive.com) For full source code, 100's more DHTML scripts, and TOS, visit
    http://www.dynamicdrive.com */ function setcountdown(theyear,themonth,theday){
    yr=theyear;mo=themonth;da=theday } //////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////
    //STEP 1&....
  7. Horizontal Pausing News Scroller
    I need help modifying the speed. (2)
    Here's the page of the code, I want to know how to make the scroller scroll faster. Thanks!
    http://www.dhtmlshock.com/scrollers/Horizo...ler/default.asp John ....
  8. Button To Display An Image
    (1)
    I have an assignment that is due tomorrow that I am struggling with. I want to be able to click the
    next button in this applet, and then repaint all the graphics. Board contains an array with all of
    the chess pieces on a board, and when the button is clicked I want to be able to get the next move,
    but for now I just wanted to call a function to move one piece just so I know it's working. Here
    is my applet code, I could post all the other files, but I am almost positive they all work
    correctly, and I am just having trouble with the applet. Code: CODE import java....
  9. Problem To Update Jlabel With A Different Image..
    (1)
    Hi All, I am inplementing a preview function on a image file browser. The application displays a
    list of image file names, which the user can select (one at a time). The preview image is loaded
    into a JLabel. When an image file name is selected, the application creates a thumbnail image on the
    hard drive call "preview.jpg". The JLabel should then update itself with the newly created thumbnail
    "preview.jpg". For some reason I cannot get the Image in the JLabel to update. I have confirmed
    that "preview.jpg" is being rewritten, each time a new image file is selected from ....
  10. Image Clocks
    (2)
    Does anyone know how to make you r own image clock (like a skin) for your website. The time displays
    like your system. you might take a look a this to know what i mean. So-You.net click here to see
    what i mean ...image clocks ....
  11. Image Show With Thumbnail And Fade
    Does anyone know were I can get this code? (2)
    Hi I would like to know if anyone knows a javascript that makes an thumbnail 'slideshow'
    and when mouseover...it fades...and when you click...it enlarges!!! I saw it somewhere
    here on the net but i cant finf it anymore!!! Can anyone help me...or does anyone know
    a good javascript site???? THANKS ....
  12. Resize Image Before Uploading
    (0)
    Hi, My upload and resizing scripts are working perfectly. Problem is clients are uploading large
    files and the script times out or connection timeout. Problem is with the bandwith and the slow
    connection in South Africa. I have increased the script timeout but it simply takes too long to
    upload. Clients forget that most didgital cameras files are massive and if they simple resize
    before uploading it will save them a huge amount of time. The final file is only 280 X 210 pixels.
    Uploading a 5Mb file over a 56k connection takes a month of Sundays. I have detailed instr....
  13. Onclick Image ->> Add Text To Input(text)field?
    (3)
    when some images get clicked, a text should added to an input(textfield). Does someone know how this
    can be done? I suppose it can be done via javascript. thanks in advance! /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> If you need more information, just ask
    /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> ....
  14. Rollover Background-image Button Ie
    Rollover background-image button IE (0)
    I find This Code On Search I Think for webmasters is good To Find Easy this Kind of code so i Type
    it here I Hope U enjoy it /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' />
    Step 1: Insert the below into the section of your page. Change the image path within ".initial"
    to reference the image you want applied initially to the button. .initial{ font-weight:bold;
    background-image:url(first.jpg); } CODE <script type="text/javascript">
    <!-- //Specify optional button target: "_new" for new window, ....

    1. Looking for image, scroller

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for image, scroller

*MORE FROM TRAP17.COM*
advertisement



Image Scroller?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE