UI Device For Rotation
Apr 18, 2006
Im trying to design something that would be intuitive for the user to
represent rotating something. Think along the lines of rotating an
image a specific amount of degrees. The obvious choice is to have the
user input CW or CCW and the number of degrees but i would rather
present something graphically and let them manipulate that, then in JS
determine the rotation.
The only thing i have been able to come up with right now is something
along the lines of the iPod click wheel with a dot at the top. As it is
clicked and dragged it spins, but the problem is i dont know if this is
possible in just JS / HTML, i don't want to use flash.
View 8 Replies
ADVERTISEMENT
Aug 14, 2006
Just wondering if anyone knows if it is possible to identify if a user is accessing a web page with a device suc as a blackberry?
View 5 Replies
View Related
Sep 6, 2011
I'm making an HTML5 web app which can use on both android and iOS devices. Here I want to use a scrollview with y direction paging and "data-scroll = yp" work for me. But here I'm experiencing an issue with device orientation change.So inportrait mode when we seeing 2nd page, scrollview offset is -768 and it is ok. But here if we rotate the device to landscape mode, then to see the complete page scrollview offset should be -1024. But still it is remaining in -768. So we have to give some touch movement to jump it to correct position.Actually this is a huge bug for scrollview and I tried a lot to fixed this. I bind a method with orientation change in scrollview widget and that method can not access other properties in the widget.
View 1 Replies
View Related
Sep 16, 2010
i want to know if its possible to update a page based on some information we recieve from a device which a client will have.the simple issue is that a client device will be sending me some values by making a request along with some parameter values. i have to recieve the request, get the values and update the information on the web page.i don't know if the get() and post() function can be used in any way.. they are supposed to send request.if I don't find a solution using jquery, i will be forced to use a servlet, but then again, i have to somehow update the page directly, i can't save the data anywhere and read it. because, one thing is the data is critical and other thing is that i will get data every 5 seconds.
View 3 Replies
View Related
Feb 7, 2011
We run a click and sales tracking solution for our advertisers and as such we are having a few issues with browser compatability for certian sites that are ont eh Magento platform. Essentially we are just trying to create an image call in javascript that uses a few pre-populated variables from the checkout process.
So teh issue we are having doesn't seem to be broser specific. We are trying to simplify the javascript call to ensure we have the highest possible chance of compatiablity. Obviously now with so many differnt browsers and also mobile devide connectivity this is making things even harder. We know that our javascript calls are failing as we've been monitoring our IIS logs and can see the image calls are being made with blank variables. There are 3 different elements to our checkout calls that maybe you guys have experience of with possible issues or fixes:
1. unescape function
2. onload event function for images
3. creating images dynamically
these are very basic elements of the javascript core but aout 5-10% of our calls are failing with blank variables being passed into the image call. So the questions is what elements of our call will be the possibel sources of failure?
[Code]....
View 1 Replies
View Related
Sep 4, 2006
Is it possible in javascript alone (or do I need to use php) to have different code show up each time a user loads the page? Code:
View 1 Replies
View Related
Apr 1, 2007
I'm in need of a good, reliable ad banner rotation setup where I can add/delete banners (and their links) remotely because I'm going to use it on over 100 web pages.
My question is: is java script the best way to go?
If so, can anyone provide me with a link to a good script I can try?
I don't need to track how many clicks, so a simple script would work fine.
View 14 Replies
View Related
Feb 24, 2009
Anyone know if its possible to put individual times on how long the image is displayed? I am trying to get the blank.jpg's to display for 1 second, while the others stay at 5.
<SCRIPT LANGUAGE="JavaScript">
var imageWidth = 385;
var imageHeight = 407;
[code]....
View 4 Replies
View Related
Dec 16, 2009
Im looking to setup a project for my uni assignment. its going to be a time radio site and i'm looking to create a page that has some javascript to carry out an image rotation.I want to have:- three images side by side- all images to rotate from a folder containing 100+ pictures- they all have different file names and extensions but i can change them if need be i want the images to rotate automatically without the page having to be reloaded or mouseovers or anything- i would like them to rotate on different time frames i.e. first picture 3 sec rotation, second picture 5 seconds, third image 7 seconds.... something like thatscanning the web but come up short. cant use php or anything its got to be a html page using javascript
View 13 Replies
View Related
Sep 16, 2011
I'm looking for a JavaScript code I could use to rotate my 10 images on 10 seconds interval.
View 1 Replies
View Related
Dec 1, 2009
I am trying to get two ad banners to rotate on my blog but I just can not seem to get them to rotate at all.
<script LANGUAGE='Javascript'>
<!-- Beginning of Javascript -
if (document.images) {
ads = new Array(3);
ads[0] = "image location correct";
ads[1] = "image location correct";
}newplace = new Array(3);
newplace[0] = "link correct"
newplace[1] = "link correct"
var timer = null
var counter = 0
function banner() {
timer=setTimeout("banner()", 4000);
counter++;
if (counter >= 3)
counter = 0;
document.bannerad.src = ads[counter];
} function gothere() {
counter2 = counter;
window.location.href = newplace[counter2];
}
- End of Javascript - -->
</SCRIPT>
Then this is in the body
<center><a href='java script:void gothere()'>
<IMG BORDER='0' HEIGHT='60' NAME='bannerad' SRC='[URL]' WIDTH='468'/></a></center>
Now it displays the second image in the array but it will not rotate through the images. Also I enter in the code like this
<center><a href='java script:void gothere()'>
<IMG SRC='[URL]' BORDER='0' HEIGHT='60' NAME='bannerad' WIDTH='468'/></a></center>
But it displays like the one above after I have saved it.
View 2 Replies
View Related
Sep 12, 2010
Sometimes I wish I had started with javascript instead of php... Really need your help fellow Sitepointers! I stumbled over a script that I am dying to use for my new design, but I need to do two small tweaks to it that my JQuery skills just aren't up to.Demo of the script is here:http://www.seoarticlewritinglab.com/lofslidernews-1/As you can see, it automatically scrolls every X seconds to the right until it gets to the end. Afterwards, it does a huge fastforward back to the first item. What I want it to do, is to automatically scroll to the right every X seconds, but when it gets to the end, simply change scrolling direction, and scroll backwards one item at a time every X seconds... And when it gets to the first item, switch the direction back to normal forward scrolling.Can someone point me in the right direction and help educate me a little bit in javascript? This is probably really easy for you experts, but I am having a really tough time.
Code:
// JavaScript Document
/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
[code]....
View 3 Replies
View Related
Oct 15, 2006
I am trying to include some javascript in my website which rotates some
stored images. I have attached the code for the index page of my
website as i am having some problems getting it to work. Can anyone see
where i am going wrong? This is my first attempt.
Here is the source script:
View 1 Replies
View Related
Oct 5, 2009
I have written the following Jquery code to change an image and text on mouseover, what I want it for it to also rotate every 5 seconds automatically. Is there a way I can adapt this code to do that?
$("#main_nav li").mouseover( function() {
$(".navigation_main, .main_info").each (function() {
$(this).removeClass("on").addClass("off");
[code]....
View 1 Replies
View Related
Jul 23, 2009
Does anyone have a tut on making a banner rotation script. I would like to ad one to the site I am building.
View 9 Replies
View Related
Sep 3, 2009
I have this beautiful script for pocket pc that randomly rotates pictures in the background with fade in/out effect. Now, what I want it to do is to split all the pictures I have in groups so that on every refresh the script randomly chose a GROUP of pictures and THEN rotated only the pictures from this group. I want to do this because if you include say 30 pictures into the script this really hangs the RAM memory, and if there are only 5 pictures to choose from its much more faster. Here's the script from html page:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
body {
background-color: white;
margin: 0;
padding: 0;
}
[Code]...
View 9 Replies
View Related
Nov 24, 2009
ode for background image and title rotation!I'd like to get images one, two and three to rotate every one second, and have titles change according to the images. Currently both background and titles are not rotating.. ;-;
<script>
window.onload = rotate;
var adImages = new Array('one.jpg','two.jpg','three.jpg');
[code]....
View 4 Replies
View Related
Jun 22, 2011
Right now I have a random rotating slideshow with delay script implemented on a website. However I want to make ONE of the slides/images clickable to open up a PDF docCan you please let me know what I need to add/change in this to make it do what I need? I am not big on java so
<script language="javascript">
/*
Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
[code]....
View 2 Replies
View Related
Jan 11, 2011
I am making a website and I have image rotation written in javascript and atm I am trying to change the boarder around my image rotation because right now the boarder is purple but nothing I do seams to work so. Here is my code
<a href="Page2.html"><img id="r1" src="images/Pro-Tech Antivirus Cover.jpg" alt="" border="5"></a>
Its all defined and everything I just need to no how to change the border so its not purple. I want it to be dark cyan?
View 7 Replies
View Related
Jan 30, 2009
I'm looking to show/hide a layer in a 5 second rotation.
IE: For 5 seconds the layer is shown, then the next 5 seconds it is hidden, the next 5 seconds it is shown, the next 5 seconds it is hidden... {ad nauseum} - you get the idea.
How could I accomplish this with JavaScript? The layer id="overlay"
View 2 Replies
View Related
Jan 23, 2011
New to the forum. I have a question regarding Random Image Rotation. The code I have is working fine for a single image to rotate out. I want to stack another rotating image directly above the current rotating image. How can I accomplish this? Not a simple copy the same code.
View 9 Replies
View Related
Feb 18, 2011
I'm having some trouble, so it's time I look to the community. I'm trying to add auto-rotation to a photo feature. It's pre-built, so I'm looking to just mod the code, rather than having to rebuilt the entire feature.Here is the existing code:
[code]
function homeFeatureClick(event)
{
[code]....
View 3 Replies
View Related
Apr 11, 2009
Basically I created a script which changes image banner on site depending on which day it is, and what period of time it is.
Script goes like this:
HTML part
<img id="banner" />
Javascript code
var nowHr=new Date().getHours();
var nowMin = new Date().getMinutes();
[code]...
Now, WHAT I NEED NOW is instead o using images (1.jpg, 2.jpg...) I want to use Flash (1.swf, 2.swf...).So is it possible to modify this script and make it work with Flash?
View 1 Replies
View Related
Jan 24, 2011
I'm trying out scripts previously made but with no luck. I cant get it to work.
Nothing to indepth. Nothing to fancy.
I just want a 4 image swap inside my div.
Can anyone guide me to a tutorial on how to build one?
View 13 Replies
View Related
Feb 10, 2006
Looks fine in IE and Opera, but is designed to write into a textarea instead of the <div> if the brower is not IE4+ (why is it working in Opera?) so on Firefox you can see the ugly textarea....
Is there a way to either turn off the Javascript in Firefox so it doesn't work at all, or test specifically for that browser (it's not testing for anything but IE right now as I understand it) and put the text into an absolutely positioned element? Code:
View 2 Replies
View Related
Nov 16, 2009
I currently manage a website that has a simple banner rotation javascript that randomly rotates banner images and the associated link every few seconds. I have been asked to replace it with a script that will be sequential in rotation and have a couple small button options just below the banner to move forward or backward through the selection.
I figured instead of reinventing the wheel someone surely has a simple a banner rotator with forward/back options, but darn if I can find one. There are countless scripts out there, but I can�t find one where the user can select the next banner before its allotted time. It would be simple enough in flash, but it was requested I stay with java script.
Anyone have any leads for a very basic banner rotation script that incorporates the forward/back selection option?
View 14 Replies
View Related