My Javascript abilities are sub-par so I normally try to follow tutorials or examples to implement java for now. Although I digress. To the point... I'm coding a web site for a photographer and need a natural looking picture selecting menu.
For example...
Now you kinda grasp what I'm attempting to do here.. anyone know of a good tutorial or example showing how to do this? I've seen several auto scrolling menus but that's not what I'm looking for. I just want an intuitive nav bar for pics...
i used setTimeout() function in my image gallery to scroll images , i used setTimeout("myfunction()",1) in my script. Now my image gallery is working properly but problem is that the speed of scrolling images if normal in firefox, but in internet explorer it is slow, and in google chrome it is very fast , Sir how to resolve this problem
I am trying scrolling of images as like: [url]. I do want to set border for the images with border property as "2px solid #000" and i do want gap between the images so that the horizontal gap value is 20px.
I tried even with image border propoerty and image style properties both border and padding as 0 20px. Both not working properly. The style padding property is working fine in firefox and google chrome. But it is working in IE 6.0
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.
I'm using a jquery image sliding plugin from this site It scrolls smoothly and continuously which is great. But I'm wanting to add a "click to pause" feature to it, so when you click any of the images the whole thing pauses, and when you click again it restarts. I'm not great with javascript though and I can't figure out how to do that, if it's even possible. code...
I'm trying to put a Continuous Horizontal Image Scroller into a web site I'm doing. my computer crashed and I lost the script. I just want a group of photo's to continuously scroll (in a loop) along the top of the home page - no links or anything.I've also forgotten completely how I got it all up and working once I had the script.
I'm having a go at writing a selector engine. It's for personal use with my own sites, so doesn't really need to be idiot proof.
It will be a fallback for querySelectorAll.
I started out just wanting something simple i.e. find 'ul li.myClass', but that wasn't enough.
This selector is intended to be a module along with an events module, which will bolt onto a framework. The framework constructor will be along the lines of jquery with a dummy constructor, prototype.init etc.
My real question is about the design or design pattern of this particular module. It's all getting a little bit messy and inconsistent.
There's a line I keep reading which is 'favour composition over inheritence'. I'm still none the wiser regarding that, but do get the impression that sticking rigidly to inheritence is problematic. Just not sure how or where to go about that.
Rather than waffling on here's the code. If extra comments or details are needed let me know. Also I'm not looking for exhaustive answers or re-writes, but maybe just a nudge in the right direction.
One of my clients has been using <marquee> to make some text scroll, but apparently it doesn't comply with W3C accessibility guidleines. I've been hunting around for a CSS/JavaScript code so we can lose the <marquee> command, but I can't find one. Do you know where I can get hold of one?
Using Scriptaculous, I've got a horizontally scrolling list of images that works almost exactly how I want it to - except the images don't loop. If you scroll left at the beginning or right past the end of the list, you just get empty space:
I need to use self.scrollTo(x,y) as the last action in a js function called by a onClick event. It seems that the scrolling actually takes place, but the document is then scrolling back to top when js code execution has ended.
In the following example I get this effect in IE6 with the third and fourth calls, while the first two work fine. Code:
The window is supposed to automatically scroll and move but it isn't working. (It was taken from a discontinued book called javascript in 24hrs) The javascript:
var pos=100; function Scroll(){ if (!document.getElementById ) return; obj=document.getElementById("thetext"); pos -=1; if(pos < 0-obj.offsetHeight + 130) return; obj.style.top=pos; [Code]...
I have a JavaScript routine that runs on a timer and updates the position of a background image using the CSS background-position property. In Internet Explorer, it changes the mouse pointer to an hourglass when it refreshes the screen, and this is really annoying since it happens on the timer, about every 100 milliseconds or so. Is there anything I can do about this?
I made a scrolling slideshow script, the problem is that although I move my pictures 1px a time I get some occasional "hiccups" in the images while they scroll. Here's the script: <script type="text/javascript"> var i; var k; var speed=40; var status=1; var slides=new Array; var position=new Array; ..... How to make the slideshow run smoother?
This is what i need to do: I have a single <DIV> </DIV> for rendering dynamic HTML content. it already has a scrollbar in it when it overflows with text. I want to be able to prevent the user from selecting text on the DIV, and at the same time, when they click on the DIV and drag the mouse up or down , the HTML document will be scrolled proportionally to the dragging.
jQuery - Scrolling browser Window. I have two demos of scrolling page content with jQuery.
This one - [url] is scrolling the contents inside a container and it works as I wanted on Mac/PC
Code:
I need the same effect as above but I need to scroll the whole browser window.
I have a demo here - [url]
Code:
Problem here is on the Mac the transition are jumpy and it seems to flash the first yellow div before sliding up or down. Testing on a PC it will slide down but won't slide up. How can I get the whole browser window to slide up and down with a smooth transition.
I'm trying to find an example of a country selector (which also provides a state selector if USA is chosen) then you cvan select the city, any samples out there?
I found a great piece of Javascript on this forum for linked random images with rollover effect but I can't figure out how to add "no border" to the script as I do not want to have a border around the linked images.
I'm completely new to this and have no knowledge at all when it comes to javascript. Have been using this script on my site for a while. Is there anyway I can add a URL link to the images that are in my selector? When clicked would go to that page on my website.
<script language="JavaScript"> /* Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com) For this script and more, visit http://www.javascriptkit.com */ var delay=10000 //set delay in miliseconds var curindex=0 [Code]...
I am looking for some recommendations for JS/HTML code that will allow me to generate drop down menus, sort of like the ones here Code:
where you can see the drop down menus if you roll over "Flights", "Hotels" and so on. The only thing I want to do differently with this is that I want to put a repeating background image behind the entire menu that drops down, and not necessarily just each item. So, in the above example, if you rolled over Flights, I'd like a background graphic to span all the menu items -- "Search Flights", "Top Deals", "Web Fares", "Low Fare Alert", and "Last Minute Packages."
i have two images which are part of a rollover button that i want to have paused until the intro animation finishes. I have the javascript code but the rollover images are specified in the css. I just have the id to them in the html. I was wondering if anyone knew how to include the rollover files with the pausing javascript code. the files are profile.gif and profileover.gif. I tried to add the files to the preload part of the javascript but that didn't work.
i have two images which are part of a rollover button that i want to have paused until the intro animation finishes. I have the javascript code but the rollover images are specified in the css. I just have the id to them in the html. I was wondering if anyone knew how to include the rollover files with the pausing javascript code. the files are profile.gif and profileover.gif. I tried to add the files to the preload part of the javascript but that didn't work. The website is [URL]...
I have two images which are part of a rollover button that i want to have paused until the intro animation finishes. I have the javascript code but the rollover images are specified in the css. I just have the id to them in the html. I was wondering if anyone knew how to include the rollover files with the pausing javascript code. the files are profile.gif and profileover.gif. I tried to add the files to the preload part of the javascript but that didn't work. [url]...