I can't seem to find what I need but I know it exists. I trying to find a vertical scroller that will automatically have the text scroll upwards but have an arrow above and arrow below to be able to control the direction of the scrolling text, or a script with no arrows but still allow me to take control by mousing over the text to scroll up or down.
I know nothing of js yet, I'm still studying CSS & PHP. So I'm just looking for a ready made script for vertical scrolling. I found one that does exactly that, but all the css styling is done in the javascipt, so I was completely lost. I want to be able to just enter the html (into the js array if neccessary, I can do that much lol) and have it scroll upwards, simple as that. The nearest thing I could find to what I want is this Creating a vertical content scroller using DHTML I can style my div & images myself, then all I need to do is enter the html and away it goes, but it functions just like the marquee tag in that it waits for the entire content to clear before it starts scrolling again.
This site has example of exactly what I need. :: BIG ISLAND LIVE :: uses one on the right side that is built with flash but I need one for a non flash site (so anti flash on this one).... CSS, JS, Jquery or whatever works etc... is what I'm looking for not flash. It would be cool to have mouse events such as move up or down images and click-able links too. But the deal breaker for sure is I need click-able links and auto scroll. It's got to be vertical I searched everywhere no luck.
This is closest I found but no auto scroll mode and no click-able links Create a Scrolling Menu: Result Create a Vertical Scrolling Menu with CSS and jQuery
What I'd like to do is use some sort of jquery plugin to make an image scroller that has a grid of images and scrolls each row and column horizontally and vertically. I'm a bit overwhelmed though and not sure where to start. I want to use fancybox for opening the image so I was hoping someone could point me towards something that would help with the thumbnail scroller?
I am after a simple div scroller that scrolls text up/down within a fix sized div, with two scroll buttons that can be set to hover/click, I have found a load that use it for <li> tags or images and scrolls only up by set amount, but I would like this for text etc.
I am trying to introduce a vertical scroller to my site, I got the code from a tutorial and slightly tweaked the html to meet my needs but now the content doesn't scroll. None of this code has been altered! <script type="text/javascript"> $(document).ready(function(){ $(".newsticker-jcarousellite").jCarouselLite({ vertical: true, hoverPause:true, visible:10, auto:500, speed:1000 }); }); </script>
This is the HTML and PHP part: <div id="newsticker-demo"> <div class="newsticker-jcarousellite"> <br/><?php $query = mysql_query("SELECT * FROM employers WHERE featured = 'Yes' AND image != '' ORDER BY rand()"); $i=0; //$query = mysql_query("SELECT * FROM employers WHERE f_emp_active = 'Yes' and image !='' ORDER BY rand()"); echo '<div>'; while ($aqm=mysql_fetch_array($query)){ ?><div><div> <div class="thumbnail"> <div align="center"><a href="company.php?companyname=<?php echo $string ?>"> <img src="<?=$fullurl?>/thumbnail.php?gd=2&src=employers/logo/big/<?=$aqm[image]?>&maxw=<?=$a18[width]?>" alt="<?=$aqm[companyname]?>" title="<?=$aqm[companyname]?>" class="noborder" /></a> </div></div> <div class="clear"></div> </div></div><br/><br/><?php if($i==5){ echo '</div><div>'; } $i++; } echo '</div>'; ?> </div></div>
I am currently working on creating a vertical scroller and have got so far but have got stuck on some of the functionality.
My HTML looks like this div class="outer"> <div class="slider-content clearfix"><ul> <li><img src="images/img1.jpg" width="200" height="200" alt="img1"></li> <li><img src="images/img2.jpg" width="210" height="200" alt="img2"></li> <li><img src="images/img3.jpg" width="220" height="210" alt="img3"></li> <li><img src="images/img4.jpg" width="210" height="200" alt="img4"></li> <li><img src="images/img5.jpg" width="200" height="200" alt="img5"></li> .....
My CSS is as follows *{margin:0px;padding:0px;} li{list-style:none;float:left;height:200px;width:200px;} .clearfix { overflow: hidden; display: inline-block; } .clearfix { display: block; } .outer{margin:45px auto;position:relative;height:500px;width:515px;border:1px solid #333;overflow:hidden;} .slider-content{position:absolute;top:0px;left:0px;} .top-hover, .bottom-hover{width:515px;height:50px;background:#ccc;} .top-hover{position:absolute;top:0px;z-index:500;} .bottom-hover{position:absolute;bottom:0px;}
And finally my JS $(function(){ $('.outer').prepend('<div class="top-hover"></div>'); $('.slider-content').after('<div class="bottom-hover"></div>'); //Get height of outer container and slider var outerHeight = $('div.outer').height(); var contentHeight = $('div.slider-content').height(); // Calculate cut off point of displayed contents var contentExcess = contentHeight - outerHeight; //store end point of scroll var maxTopScroll = 0 - contentExcess var speed = 45; var hovered = false; ..... //If scroll reaches max then stop alert('No movement'); }}, function(){ return false; });});
Currently the scroller moves up and down when you hover over the top and bottom buttons however you have to keep moving in and out of the hover area in order to get the scroller to move. How can you make it so that it will do a continuous scroll of the scroll-content div. Also currently the script has no way to limit the end of the scroll-content div and I cant seem to get it to stop once it gets to the bottom of this div.
I'm trying to create a piece of code that will check a webpage and replace any instances of a specific line of HTML with another line of HTML. The code I have so far doesn't work, but I have a feeling that's down to my awful Javascript skills! For example, in the following code I'd want to replace all instances of <li><a href="index.pdf">Index</a></li> with <li><a href="contents.pdf">Contents</a></li>
The Javascript I have so far is: <script type="text/javascript"> var aEls = document.getElementsByTagName('a'); for (var i = 0, aEl; aEl = aEls[i]; i++) { aEl.href = aEl.href.replace('index.pdf','contents.pdf'); } Obviously this is meant to just replaces the a href elements, but I got a bit stuck after this!
What is happening is $(this) is no longer based on .expand being the (this) that is clicked.
like if i have a button SOMEWHERE randomly on the page with this
<div onclick="Minimize('_alerts');">Click Here</div> this will minimize alerts but because the (this) in minimize function doesn't actually point to the right button that I want to add a class to.
Is there a way to modify the minimize function so that it finds the <div id="mytoggle"><ul> <li class="expand boxminimize" rel="_alerts"> using the rel toggle, and then changes the class of the li from expand boxminimize to boxexpanded??
just like the .expand click function I posted on the top of the post that works?
Another thing that has been driving me crazy is that css positioning is handled differently by different browsers. JS is not my area, but I can do a lot with CSS, and I do, but cross browser compatibility is killing me.
I can use an IF IE statement and only IE runs that segment of code, but I haven't been able to figure out out how to make ONLY firefox or ONLY opera or safari enact an encapsulated segment of code. The same type of IF statement doesn't work for them.
Is there a single method using JS that works for all browsers?
function result(){ var result = document.getElementById('resss').innerHTML; }
But what I actually want is to import data from a table of an external website. E.g. I want to get the innerHTML of a specific cell in column 3 and row 2 of a specific site.
I have been looking for rss scrollers/tickers which go horizontally, I have found one which goes vertically and is very good, but I have no idea how to change this to go hoirzontally.
Does anyone know of a script I can use to solve my problem.
Obviously it is impossible to show the script I am using for the vertical one as it is made up of several files.
I'm looking for a particular dhtml content scroller that is will slide to different sections of the content when a link is clicked.
Imagine a long table with all the pages of content on it side by side and a layer is placed over that table so that when a link is clicked the desired content will slide into view.
Its a very common effect used in flash sites but im wondering if anyone knew how to do it using dhtml.
I am using jquery as a text scroll (jcarousel) to pull recent articles from a blog. Everything works great. EXCEPT, I would like to have the links open in a new browser if possible.
Here is where I THINK the code needs to be changed?
// JavaScript Document function mycarousel_initCallback(carousel, state) { // Lock until all items are loaded. That prevents jCarousel from // setup correctly and we have to do that in the ajax callback
why (and the fix) when I place my cursor over the scrolling thumbnails under the main slideshow rotator on my site they "disappear"?http:[url].............
I have a question about this scroller/ticker script (http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm) I'm working with. I'm able to get the script working on it's own page, but when I put into my HTML I'm having an issue where all the test lays on-top of each other and the scrolling is broken (see attached image).
In a thread somewhere, someone wanted to know if there was a form element that would create a slider bar for the users to select a rating for something or other.
Well I went away and made one in DHTML and it works in all but five browsers (IE 3.0 4.0, NN 4.79 Opera 5.02 6.00) that I have tested it on. Once I had made it, I decided to make it more customizable by allowing users to set the width of the bar more easily.
Then I considered using XML to create the slider bar so that it would work for non-JavaScript users, I decided against this for two reasons, not many people use XHTML for their pages and I don't know XML. Instead I just included a noscript section with just a normal text box in.
Then someone at school told me that I could use ActiveX to create a slider bar. Well, lets just say that I know more about XML than ActiveX and leave it at that.
So as it stands this is just your average, run-of-the-mill, DHTML script. I'm posting it here to see if anyone can think of any ways that I could make it better or just tell me how damn good it is. :D I don't mind either way, honest.
I plan on submitting it to Dynamic Drive so that's why there are credits all over the place if you're wondering.
I am trying to create a combo box with horizontal scroller. i.e. Combo box will have a fixed width, ifany of its options have higher text, then horizontalscroller should appear automatically.I also tried placing a <div> around <SELECT>. But not getting how to apply styles on it.
Does anyone have a script for a scroller that scrolls a normal page in an iframe when you rollover an image (which would not be inside the iframe rather on the page the iframe is on)?
I've been searching the net for like hours and all I've found have been news tickers and marquees.
I'm working on a site that has a horizontal thumbnail scroller that when moused-over, the larger image of the thumbnail appears in a cell above.
The problem I'm having is with this line of code:
var menucontents='<nobr><a href="#" onMouseOver="('imgone')"><img src="images/thumb/img_01.jpg" name="imgone"></a> <a href......
As you can see, in my onMouseOver, I have '<nobr><a href="#" onMouseOver="('imgone')">... The problem is the use of single-quotes to open the initial statement, as well as when referring to my 'imgone' object.
Is there any way I can work around this problem so that I can have the picture loading without any problems?