MooTools Scroller - Ticker Scrolls Horizontally At Times - Vertically At Times
Feb 11, 2009
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Is it just extraneous code possibly? It seems to be ok (from right to left) in Firefox 3 but using IE and Opera, it scrolls from btm to top and I cannot figure out why.
View 1 Replies
ADVERTISEMENT
Jan 18, 2010
I'm using the following piece of code to create a link that, when clicked, uses jquery animation to slowly display a paragraph of text. The trouble is that the animation goes both vertically and horizontally, making it look a little too busy/cluttery. How can I tweak my code to make it only animate vertically?
View 2 Replies
View Related
Jun 29, 2011
Originally posted this in the CSS/HTML forum but I was recommended to posting it in here as it seems the solution I'm after would be JS based.Here's the build site so far, a little messy but you should be able to see what I'm after.[URL]...When you click the SHOWS link, I have a scrollto that scrolls horizontally to another (unfinished) div. What I want is for the logo box & navigation box to scroll along with the page, fixed horizontally. But when the user scrolls vertically through content, such as the stuff on the home div, I don't want the logo & nav to scroll.
I found this [URL]... via googling, but I can't make much sense of it as I'm very much a JS noob. I've tried to change element id to that of mine but it didn't do anything.
View 5 Replies
View Related
Aug 10, 2011
I'm working on a blog design. (See code below.) I'd like to fix #title vertically so that when people scroll down the blog, it stays in view in the window. I couldn't think of a CSS way to do it. Using position:fixed doesn't work because if someone is viewing the site from a netbook, or simply from a downsized browser on their normal computer, #title is either cut off -- if it's positioned relative to the left -- or it overlaps the blog content -- if it's positioned relative to the right.
I've read suggestions to use Javascript but my Javascript skills are practically non-existent. The suggestions were to use an onscroll handler, and to use scrollTop. This is what I wrote but (probably for obvious reasons) it isn't working:
Code:
window.onscroll = verticalFix();
function verticalFix() {
var sidebar = document.getElementById("title");
sidebar.style.top = .scrollTop(30);
[Code]...
View 5 Replies
View Related
May 12, 2006
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.
View 3 Replies
View Related
Feb 9, 2010
i've been wrestling with this issue for the last hour. I can't seem to get thiscentreddiv to animate properly.What it currently does:A small div, (10x2px) expands to full 100% width and 100% height. However, it expands in the bottom right hand corner of the screen.
What I am trying to get it to do: To expand equally in all four directions.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code].....
View 2 Replies
View Related
May 23, 2011
so just a simple questions maybe someone can help me out. I know nothing about java first of all but i do know in this code how to get rid of the comma - the only thing i need to change is to make it paste email results vertically instead of horizontally because it helps me collect emails from some older emails i have
here is the code and the link for the code:
[Code]...
View 3 Replies
View Related
Dec 28, 2007
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).
View 3 Replies
View Related
May 16, 2011
[URL] The ticker below the navbar works fine in FF and Safari, does not work in IE8 (and mostly likely other IE version as well). In IE, the live page will not even load; will load locally but the ticker doesn't work (remains static). Here is the .js:
TICKER_CONTENT = document.getElementById("TICKER").innerHTML;
TICKER_RIGHTTOLEFT = false;
TICKER_SPEED = 1;
TICKER_STYLE = "font-family:Arial; font-size:12px; color:#444444";
TICKER_PAUSED = false;
[Code]...
View 1 Replies
View Related
Jul 6, 2009
I'm trying to get some thumbnail images that are displayed with ClueTip to be centered vertically & horizontally. The images are various sizes, though none is larger than 150px on a side, so I set ClueTip to have a width & height of 200px. The images are wrapped in a div so that I can have them display: none by default, yet assign display: block to the images themselves.
div.DownloadStatsThumb { display: none; vertical-align: middle; }
img.DownloadStatsThumb { display: block; margin: auto; }
The markup looks like so:
<a href="#" rel="#thumb_456" title="">foo</a>
<div class="DownloadStatsThumb" id="thumb_456">
<img src="/path/to/some/image.jpg"
width="150" height="101" alt="thumbnail image"
class="DownloadStatsThumb" />
</div>
The images are always aligned left & top. Eventually, I figured out that it was div#cluetip-inner that was the culprit. While the outer div has a height and width, the inner div has display:inline-block and so was shrinking down to the img size, essentially. I then added:
onActivate: function(e){
$('#cluetip-inner')
.css('display', 'block')
.css('width', '186px')
.css('height', '186px')
.css('vertical-align', 'middle')
.css('background-color', '#000');
return true;
}
The 186px is to avoid getting scrollbars and the BG color is to assure myself that it's resizing ok. However, the images remain centered horizontally only. Is there something else I've missed?
View 1 Replies
View Related
Jun 27, 2011
We have jcarousel on our forum site which rotates automatically. It is vbulletine forum. In fact originally it was working fine with old design and rotating images automatically in horizontal direction with a set of 5 images visible at a time and total 12 images in set.But we have upgraded our forum design in last week and I started getting issues with Jcarousel scroller.[URL] At new design when we implemented jcarousel scroller it is showing only one image in a horizontal row at jscroller and it disappears immediately and after 3-4 min it do reappear again. When I inspected it using firebug I have noticed that other images are coming below vertically not horizontally, really strange. Also I noticed another thing is that it is not updating width at element.style in firebug for UL tag. It is showing fix width 220 px all time. I think due to that all images appearing vertically one after one rather than horizontally.
<style type="text/css">
.jcarousel-skin-tango .jcarousel-container {
-moz-border-radius: 0px;
[code].....
View 2 Replies
View Related
Dec 24, 2009
i'm using this code:
var r_text = new Array ();
r_text[0] = "Random Text 0";
r_text[1] = "Random Text 1";
r_text[2] = "Random Text 2";
r_text[3] = "Random Text 3";
r_text[4] = "Random Text 4";
[Code]...
The text is yellow..size 10, yet whatever font family i specify, will ALWAYS appear in the font Georgia (in the browser im using, Firefox.) in both Opera and IE, it comes out Times New Roman! this is a real rooky problem, but i am a rooky and i'd just like to understand why, and how to ACTUALLY get Calibri.
View 2 Replies
View Related
May 8, 2006
I have a banner and it is for an internet radio station. I want the DJ to be shown on the banner be this would change every hour. 24/7 how shall i do this? :thumbsup:
View 8 Replies
View Related
Nov 21, 2007
Is there a small addition we can make to a .js file, so that it will only be
read during certain times of the year and ignored at the others? It's for a
Christmas promo.
We want it to run only from 1 Nov - 10 Jan, any year.
View 14 Replies
View Related
Jun 12, 2011
e.g.: when the $.ajax runs first time,it return an xhr object which will be used in the $.ajax second time
View 6 Replies
View Related
Apr 15, 2009
I'm currently working on a browser based 2d multiplayer rpg using PHP and ajax. As the number of beta testers has increased, I have found that there is a significant amount of lag involved in changing maps (maps are 480x480px ea consisting of multiple images. What I would *like* to do, ideally, is only load each image once. So the first time I encounter "grass1.png", for example, it is loaded into div id "grass1", and never needs to be loaded again. My question is this, is it possible, to do the above, and then call div id "grass1" for each instance of the image?
This way, I could store all images encountered thus far. When the player left a map, all images would be positioned off-screen, and moved into the field of view as needed. I am already doing this, but there is a div for each unique object. (meaning there could be 10+ divs for the same image, for just one single map!). This would be much more efficient if I were able to call and store just one div per image, and just display it multiple times in multiple places.
View 2 Replies
View Related
Oct 9, 2009
When you click on the "Printer Friendly Order Summary" button, an alert for the req'd fields popups up THREE times and I don't know why.... it's also popping up EVEN when all req'd fields have been filled out, and then it proceeds to the next page as it should. This used to work, I have no idea what happened! http:[url]....
View 3 Replies
View Related
Nov 20, 2009
i have a bbcode for download links on my forum when this bbcode is parsed, it will display a link under the download link BUT only for the first 3 links.so basically i would need a javascript with a counter, that will display some text if the counter is > 3 and then add +1 to the counter normally i would EASILY do this with php, but i can't (bbcodes are parsed not parsed by server on phpbb, and you can't use php code in bbcodes)
View 3 Replies
View Related
Mar 3, 2010
I've had this script for a few years which I use to make a search box, it adds the user's search to the end of a url, so you can make a search box for Google or pretty much anything. If the user clicks on submit ('Find') without selecting a pull down option I like the script to alert something like 'select a site' or if they don't enter any keyword to alert 'enter a keyword', however when either of these happens, the alert box needs to be clicked several times to get rid of the alert. so I'm wondering if the script is running in some kind of loop.... The script does what I wat I just want to make the alert boxes go after the first 'click' to hide them...
----------------
searchdata.js
----------------
[CODE]
function addplus(items)
{
var plussed = "";[code].......
View 2 Replies
View Related
Feb 24, 2011
A have a little program and i need to count somehow how many times a while loop is ran.
View 1 Replies
View Related
May 20, 2011
I made a sort of typewriter script that shows every next character of a text in a particular DIV, each milisecond. (testing in IE, not tested in other browsers yet)
Now, after the function has run, I cannot run it again. It stops all completely.
I have put some variable in it to see it's running or not. But that doesn't help it anyway.
Has this something to do with event bubbling or something else?
Code JavaScript:
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>Test</title>
[Code].....
View 3 Replies
View Related
Jan 10, 2010
It's about my previous post I'm using a Java Script Calendar on external page(JavaScript). My problem is when you click on the page where the calendar is displayed it Closes down and it's visible after refreshing the page.
View 1 Replies
View Related
May 23, 2010
I have a form in which there are two buttons,input type of button1 is Submit and button2 is button.
<form name="myForm" method="post" action="two.jsp">
<input type="submit" name="btn1" value="Test1">
<input type="button" name="btn2" value="Test2">
</form>
I am calling a javascript on click of button2.
<script type="text/javascript">
function jump(){
[code]....
After closing the popup window which is opened against button2, if I click button1 then it will open the same popup window.
View 3 Replies
View Related
Apr 7, 2009
I have been tasked with creating a small tool that will allow messages to be copied and pasted from a form. I have the form and have the basics of what I need but I am stuck with dates and times.
Long story short, I am trying to figure out how to get a message to be displayed on a page using the document.write depending on the following criteria:
If the day and time are monday to Friday 08:00 to 15:00 the message will state that the next update will be in 2 hours time from when this update was posted
If the day and time are monday to thursday 15:00 to 18:00 the message will state that the next update will be at 09:00 the next working day (i.e. if it's 16:30 on a tuesday, the next update will be at 09:00 on wednesday etc)
If the day and time are friday 15:00 to 18:00 the next message will state that the next update will be at 09:00 the next monday.
View 2 Replies
View Related
Jul 12, 2010
i'm new to JS and am trying to use an image several times on the same page, having each image show rollover behavior. The rollover code works for the first image on the page, but when I hover over subsequent images it only changes the rollover state of the first image on the page, not the image I'm hovering over. I'm using the following functions to change rollover state:
gallery_on = new Image ( );
gallery_off = new Image ( );
gallery_on.src = "gallery_on.png";
gallery_off.src = "gallery_off.png";
[Code]...
View 3 Replies
View Related
Jul 20, 2005
I hope someone can tell me why this is not working. I have a form that
dynamically creates the code below. This is for one product and there are
about 10 to 50 products that are listed depending on what manufacturer the
user selects. After "buying" a few products (4-8) they user gets the error
message: 'QUANTITY.value' is null or not an object.
Do you see a workaround/fix for this?
I posted this on February 19, 2004 under the title 'value is null or not an
object -- after a few submits' and received some syntax tips. The
formatting has been applied and I hope someone can offer some programmatic
help.
HTML (calling code):
View 8 Replies
View Related