Scroll 2 Things At Once (the Player Div And The Global_map Div)?

Nov 12, 2009

i have found an engine that i would like to edit, in the following javascript code, it will contain code on moving a player to the left, what i want is for every 32px it moves the player left, i want it to also to scroll the map at the same time (it's all contained in a div called "global_map") -

function player_move_left(user_id, bloc_id, charaset, prefix)
{
var player_id = prefix + user_id;[code]....

how to scroll 2 things at the same time (the player div and the global_map div)

View 2 Replies


ADVERTISEMENT

How To Make Browser Music Player/ Video Player

Apr 17, 2006

i am having trouble making an in browser ws to be able to put the songs on it by the way. Basically its supposed to be like winamp or w/e when you download it but instead i want it in a browser. The user should be able to just drag there files in and play.

View 1 Replies View Related

Make The Player Select Playing With The Computer Or Other Player And Select Who Player Beginning Playing?

Dec 29, 2010

i need code in javascript to make the player select playing with the computer or other player and select who player beginning playing

View 2 Replies View Related

Youtube Chromeless Player - Videos With An Id That Contains An Underscore Or Dash Don't Play Although They Play In The Normal Player

Dec 11, 2011

I am using the youtube chromeless player and embeding videos with loadVideoById() method problem is that videos with an id that contains an underscore or dash dont play although they play in the normal player. I also tried replacing with a hex value in querystring i.e (%5f) but that did not work I also tried loadVideoByUrl() method with several urls but still they don't load. here is my code

function switchToPlayer(ytid){
var params = { allowScriptAccess: "always"};
var atts = { id: ytid,onmouseover: "this.playVideo()",onmouseout: "this.pauseVideo()"};
swfobject.embedSWF("http://www.youtube.com/apiplayer?border=0&enablejsapi=1&playerapiid="+ytid, 'cell'+ytid, "150", "120", "8", "scripts/expressInstall.swf",null,params,atts);
}
[Code]....

View 4 Replies View Related

Listing Things In A DIV With JS?

May 27, 2009

I've made a code that finds the factors of an inputted number. Here's the script code...

However, when I factor it, It will go to a blank unformatted page to list the factors. How can I list the factors on the webpage itself like a div? I tried using a <div> and innerHTML but it only lists one factor.

View 3 Replies View Related

JQuery :: Fading Things In And Out?

Dec 31, 2011

i have a problem with fading things in and out using jquery. Please check it out.THe problem is that sometimes the fading in happens before the fading out. What can be done to fix it?

[Code]...

View 12 Replies View Related

Changing Things With A Button?

Nov 9, 2009

i have a box:

<img id="imgSearch" src="" alt="Websites" />
<input type="button" value="Toggle Search" id="btnSearch" />
^being the button to toggle between websites.

basically i'd like this button to toggle between different websites when clicked.

secondly:changing span tag colors

html code:

Traffic Light: <span id="trafficLight"></span>
<input type="button" value="Prevent Accident" id="btnTraffic" />

i'd like to change the color of this span id by pressing the button. so in this case it would change red, yellow green and last:

changing the font in a bold tag bold by pressing a button

html code: (note, the font weight in normal in css for bold)
<b>i want this bold when you hit the button!</b>
<input type="button" value="Set Bold" id="btnBold" />

View 1 Replies View Related

Checkbox Do 2 Different Things After It Is Clicked?

Jun 13, 2010

Can a checkbox do 2 different things after it is clicked? Right now I am using this...

<input type="checkbox" onclick="processCheckbox(this);">
<input type="checkbox" onclick="activLink(this.checked)">

I don't want to have 2 checkboxes on my page, just 1 and get the same result.

View 2 Replies View Related

Are There Such Things As Pointers In Javascript?

Jun 6, 2007

Are there pointers in Javascript available, like for example in Turbo Pascal 7? :)

So i could use
function TestFunc(PointerToFunctionA, FunctionAItself) {
FunctionAItself('Hallo'));
//And how to use the Pointer then?
PointerToFunction('Hallo')...???
}
function PassedFunction(TextToShow) { alert(TextToShow); }

TestFunc(^PassedFunction,PassedFunction);

View 2 Replies View Related

Can't Make Things Appear / Disappear In IE

Jul 28, 2005

I'm trying to make selected text appear / disappear depending on what the user clicks on. It works perfectly (as far as i can tell) in firefox, but in IE i get "Could not get the display property. Invalid argument". the strange thing is, it will make things disappear, but not show. I'm trying to change the display from 'none' to 'table-row' because that's the only thing that would display properly in firefox. here is the applicable [code]...

View 6 Replies View Related

PING - And Do Different Things Depending On The Result

May 9, 2009

Is there a way to do a PING from within Javascript and do different things depending on the result, kinda like

Look at [url]

Hover the mouse pointer over the labels for doofus and dingbat to see how I want it to look.

View 2 Replies View Related

Jquery :: Shadow Slowing Things Down?

Oct 24, 2009

I'm developing a website utilizing Jquery Drop Shadow and thickbox and other things. I just implemented the thickbox and thought that maybe the slow response was my system (I've had photoshop, 12+ browser windows up, etc). I realize that may not be the case and I suspect jquery's drop shadow is a hog. I don't want to go through the entire code and implement a different shadow method at this point. Instead I'm wondering if anyone can verify this issue

[URL]... Click on the "Film Reel" and it may be especially slow to load. If you suspect it is my use of the Jquery Drop Shadow, can you recommend ways I could optimize it? One idea I have is to toggle it off and on when thickbox is opened and closed. However I don't know how to do that yet.

View 4 Replies View Related

Validate Multiple Things On A Form?

Apr 15, 2011

I wanted to validate the credit card numbers (I know that's not necessarily safe but I'm living recklessly and we have SSL on this )...

I found some javascript methods but I already have an "onclick" event on my submit button (to make sure people agree to the cancellation policy)....

Is there a way to multitask and do all those things with one script?

View 14 Replies View Related

JQuery :: SlideDown Without Pushing Other Things Down?

May 25, 2009

How can I make something in jQuery slideDown without pushing things under it down? To take it out of the flow so it just overlays a slidedown like a typical dropdown menu? Can slideDown be used for that?

View 2 Replies View Related

Application To Scroll The Table Header From The Same Amount Of Pixels And In The Same Direction When User Scroll Horizontal Bar In Div1

Feb 24, 2009

i have 1 div with scrollbars and another div with a table inside. when user scroll horizontal bar in div1 i want application to scroll the table header from the same amount of pixels and in the same direction. i did not find anything under jQuery about that.. :-(

1. how can i detect in which direction the scroll is done (to the right, or to the left) ?
2. how can i determine how many pixels this scrolling is about ?
3. how to scroll the table header (table tag or th tag) from the same amount of point ?

i found just scrollLeft for now and i'm not successful to use it

View 1 Replies View Related

Make An Image/text To Scroll As The User Scroll The Page Also?

Sep 25, 2009

how to make an image/text to scroll as the user scroll the page also? for example if the user scrolls down image/text also scrolls down and when the user scrolls up image/text also scrolls up..

View 6 Replies View Related

Things Just Fail To Work - Giving Null Error?

Apr 10, 2009

Is there a reason why this wouldn't work??

<!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]....

Gives me the same null error, sometimes I get a "nav" is not defined, but again this is in both IE and FF.

View 2 Replies View Related

Creating A Form Where A User Can Enter Prices For Things?

Dec 10, 2011

today I am creating a form where a user can enter prices for things. I want to use javascript to display a total so far and it should update automatically as the user
nters/changes new prices.I have a form which looks something like this:

<form method="post" action="mailer.php" name="contact">
Price 1 <input type="text" name="stampprice[]" size="5" onchange="calculate_total()">
Price 2 <input type="text" name="stampprice[]" size="5" onchange="calculate_total()">

[code]....

View 1 Replies View Related

Script That Outputs Different Things Based On When Feed Was Updated

Aug 25, 2006

I am trying to make a script that outputs a block of code depending how recently a certain feed was updated. for example, if it was updated today, the output would hopefully be <div class="andrewupdated andrewtoday"></div>But currently nothing is being output. Code:

View 1 Replies View Related

Prevent History Scroll (shift Key + Mouse Scroll) In IE

Jan 3, 2007

Is there a way in which we can disable the history scroll functionality in IE? Basically disable the SHIFT key + Mouse Scroll combination.

View 1 Replies View Related

Make A Div Tag And Its Contents Scroll Down The Page Automatically When You Scroll?

Jun 13, 2006

Does anyone know of a script that makes a div tag and its contents scroll down the page automatically when you scroll?

View 2 Replies View Related

JQuery :: Make Hidden Things Not Show Up On Load / Refresh?

Dec 23, 2010

I have some contents on my page that are displayed on click or hover.Therefore, initially they are hidden using the hide() method.

They work fine as intended.

But if it is a slow computer, you can see them on the screen for a second or two before they disappear. Or if the user refreshes the page - you get the same thing happen. How can I prevent this?

View 3 Replies View Related

Cannot Add To Address Bar Anymore - Allow The User To Change The Page Designs And Other Things

Sep 13, 2011

I have one site that has a bunch of cool easy javascript tricks that allow the user to change the page designs and other things. I had put a lot of time, effort, and $$$ into this site, and it was where I make partial income to provide for my family. Lately, I have noticed that some browsers (Chrome) will not allow the user to paste my javascript codes into their address bar.

Example: if user pastes "javascript: alert(2+2);" into their address bar in Chrome (and some IE I have heard from visitors) it will do a google search on alert(2+2) and will completely strip the "javascript" part out.

View 8 Replies View Related

Doesn't Lightbox Look Right - Put A Background Behind Things Like The Caption And To Give It A Bigger Boarder?

Jan 18, 2009

I'm using the original lightbox script, took the code exactly as it was given but it doesn't look like the demo: [URL] What do I need to do to put a background behind things like the caption and to give it a bigger boarder? Example here: [URL]

View 1 Replies View Related

JQuery :: Malsup Cycle Plugin: Pager Disappears In IE7/bold Text Does Odd Things

Feb 22, 2011

I have the cycle plugin running, works fine on all but IE7 (not catering to IE6). The pager elements on the right do not appear in IE7. I have tried adjusting the z-index, etc., but can't figure it out.

Also, the caption text transitions in with bolded elements properly appearing, and then they flip to regular text (the whole line of text transitions a bit strangely).

View 4 Replies View Related

Universal Browser Compatibility - Mobile Device Connectivity This Is Making Things Even Harder

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







Copyrights 2005-15 www.BigResource.com, All rights reserved