JwPlayer :: Get The Exact Position As 2:51 Instead Of 171.97?
Jul 15, 2011
I was able to get the position of the video by using the jwplayer().getPosition() function but I get something like 171.97 but the timer on the video showed me 2:51. How can I exactly get the position as 2:51 instead of 171.97? [URL]
My Code:
Code:
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "player.swf",
[CODE]....
View 5 Replies
ADVERTISEMENT
Jan 22, 2011
i would like to know the absolute position of an element (e.g. <LI>) in the browser. i nned to know it in order to place juste beside another element (e.g. submenu).
for example: i have a <li> tag which is at 400px from my browser left border (because it is inside a div which is screen centered). this <li> has a width of 180 px so if i want to know the most left position for my submenu, i should get 400 + 180 = 580 px (from the browser left border).
i tried offset but without success. in fact it returns me 0.
View 4 Replies
View Related
Jul 11, 2011
i am trying to load video to jwplayer you can do it from by putting the name of the files directly into the script like this
Code:
<a href="#" onClick="jwplayer().load({'file': 'video_SD.mp4', 'hd.file': 'video_HD.mp4'})">
but now i want the names to come from the database so i tried it like this
Code:
echo "<td><a href="#" onClick="jwplayer().load('file':" . $row['first_vidoe'] . "'file.hd':" . $row['2ndvideo_HD'] . "' )">" . $row['FirstName'] . "<a/></td>"; echo "<td>" . $row['Age'] . "</td>";
View 1 Replies
View Related
Jul 2, 2009
I'm hoping someone might be able to clue me in on how the proper syntax for passing "flashvars" and "flash parameters" via Shadowbox to the JW FLV player should look. There is nothing in their docs that actually indicates exactly how one would properly format multiple variables and then send to the FLV player via flashvars. I've already posted to their forums but no response (typical). There is indication that this can be done on a per-link basis or via the Shadowbox.init() function; but again, though examples exist, none represent the type of situation I'm attempting to achieve. I've spent a ton of time combing their forums for some sort of clue and there are little nuggets but nothing definitive. My goal is to achieve the re-skining of the JWPlayer which is possible. I'm able to achieve this re-skining of the JWPlayer outside of the Shadowbox environment so I'm confident it can be done but I'm perplexed as to how to achieve.
[Code]...
View 1 Replies
View Related
Nov 23, 2011
i,m trying to make a map who show me as position A and a target adress as point B.I have made it so i can choose adress a and adress b from a dropdown but i want to automaticly load my position as possition A then choose position B from a dropdownlist. How can i do this ?
[Code]....
View 2 Replies
View Related
Nov 17, 2009
I want to pass my exact li's value using AJAX. but it seems it passing only first value.e.gi have the following value
apple
banana
when i click on banana it consider apple only. here is my code.
PHP Code:
<?
$sqlChk = $op->runsql("SELECT * FROM `fruitlist` WHERE sell_id='$sellid'");
if(mysql_num_rows($sqlChk) > 0)
[code]....
View 8 Replies
View Related
Jul 23, 2005
I am trying to figure out how to set up my reg exp search so that the search
will only match on the exact word.
Here is the current problem code:
Word1 = "RealPlayer.exe"
Word2 = "Player.exe"
RegExp re = Word2;
if (re.Find(Word1))
{
bFound = TRUE;
}
Currently the bFound is set to TRUE since "Player.exe" is found within
"RealPlayer.exe". But I only want bFound to be TRUE is if the entire word
matches.
View 6 Replies
View Related
Feb 18, 2011
<html>
<head>
<script type="text/javascript">
function loadXMLDoc()
View 1 Replies
View Related
Jun 21, 2010
How can i check that the value of my checked radiobutton / checkbox (between two or more) is exactly the one i want? at the moment if i check a radiogroup the validation returns always the value of the first radiobutton / checkbox.[code]..
View 3 Replies
View Related
Jan 12, 2011
I want to match 5 uppercase letters followed by a dash, followed by 5 more uppercase letters. I tested this:
Code:
<script type="text/javascript">
var str="^This is a test. PIYRW-NKJDQ";
var patt1=/[A-Z]{5}-[A-Z]{5}/g;
document.write(str.match(patt1));
</script>
and if I change the last part of str to "XXPIYRWV-XNKJDQ" it matches "IYRWV-XNKJD" when I want it to return null. What am I doing wrong?
View 6 Replies
View Related
Mar 19, 2009
Say I had a <div>. I want it to be the exact height of from the top lft corner of the screen to the bottom right. Not 100% height, but top left to bottom right. That distance. It has to work for all resolutions so is there some formula for that?
View 16 Replies
View Related
Aug 15, 2006
Someone told me that determining the exact location and current state of any
JavaScript controls is pretty easy. Does anyone know exactly how this is done?
View 10 Replies
View Related
Sep 30, 2010
Is there way to only match on strings starting with the first characters input?For instance, if I have a list as such:[ 'Tamara','Amy']when I start to type 'Am', I only want to see "Amy" in the drop down list, not "Tamara".I feel like this should be an easy configuration option or easy mod, but alas, I could not find it.
View 1 Replies
View Related
Feb 10, 2011
Using Jquery 1.4.4
I m currently trying to capture table cell width using jquery function width(), i m currently getting 1px width more in certain cells.
how to calculate exact width, also i believe the calulation goes wrong if i have borders.
(I believe drupal might be doing similar thing in admin panel)
(If somebody has query why i want table cell width: When a table is long and has scroll to add floating header like in drupal admin panel, by getting width of actual table cells i adjust floating header cells width using jquery)
View 3 Replies
View Related
Oct 4, 2009
Is there a way (selector) that would allow me to select an element by exact mach of containing text. example:
<div>
This is some text
</div>
<div>
This
</div>
Lets say i want to select only the second div
$("div:contains('This')")...
okay, it would select it, but...it would also select the first one. I could iterate through each div and check if the text is matching but that's kinda dirty way of doing this. Is there any selector which would allow me to do this without iteration?
View 4 Replies
View Related
May 2, 2009
Perhaps I need a function? that will test for 2 or 4 exact matches, then opens the window or page?
Lastly I need to put some white space btw some data
example aaaa 111111 vs aaaa111111
What I have so far
<html>
<body>
<script type="text/javascript">
var x;
[Code]....
View 4 Replies
View Related
May 10, 2011
I am trying to get the JavaScript drop down menu from this site to work with the Internet Explorer browser:Simple JavaScript Drop Down Menu with timeout effect v2.0 � Scripts and Tricks � JavaScript DHTML TutorialsI can download the page to my computer, then open the page from the folder into which it wasdownloaded with the IE browser, and and it works fine.But however, if I: 1). rename the page or 2). copy and paste all of the Html code on the page and then paste it in to a new file and then try to open it in the IE browser I get this message:To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..
View 1 Replies
View Related
Mar 6, 2006
I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box and save it to a file. This step is not to hard however the contents of the textarea is mostly latex source so it contains just about every special character you can imagine. My question is this, how do I save an exact copy of the textarea contents with special characters, carriage returns, etc to a file?
View 8 Replies
View Related
Sep 24, 2009
I wanted to resize the modal dialog based on the content of the modal dialog for that i used the following lines of code:
The 'document.body.scrollHeight' is not giving the exact height of the modal dialog bcos the button on the modal dialog are not completely visible to click for the user.
How to get the exact height of the modal dialog to resize it?
View 1 Replies
View Related
May 13, 2010
I'm new to javascript and am not sure why this works in firefox and not chrome. I am trying to create a script that keeps an object fixed horizontally while bing positioned absolute vertically. if I replace the toPP variable in document.getElementById('fire').style.top = toPP; with say '50px' it will move the element down 50 pxs, but how I have it currently it doesn't do anything in chrome
<script type="text/javascript" >
window.onscroll = function()
{
if( window.XMLHttpRequest ) {
var x = 0 -document.documentElement.scrollTop;
var toP = String(x);
var toPP = toP + "px";
[Code]...
View 7 Replies
View Related
Aug 17, 2011
OK so the basic stylesheets comprise about 800 lines of code and look about as fragile as Trump's ego; I don't understand what most of these CSS selectors actually refer to and I'm intimidated about breaking something.I need to make a smaller (less width, 230px wide to be exact) version of the audio player.[URL]
View 2 Replies
View Related
Aug 11, 2009
#navigation li is the parent element, which is positioned relative.The ul element above that is also position relative. I previously tested a click function and was able to confirm I was getting the correct position back, so now I just need to set the CSS property correctly for all of those links.The reason I want to do this is I have a set of links that appear over a photo of a city skyline. When you hover over those items, I want them to be given a background image that is a blurred and lightened version of the same photo so it needs to line up (sort of like the tabs are made of frosted glass).
View 1 Replies
View Related
Jan 4, 2012
I am doing some development using jQuery $.getJson lately and found the following weird scenario.
1. open google chrome without any argument then load a local html file.
2. the local html file will need to have $.getJson[url] .... bla bla bla and jQuery.support.cors = true.
3. data will get loaded
But if you try to load the exact same json data from other domain or localhost, it wouldn't works.
View 1 Replies
View Related
Mar 9, 2010
I want to redirect my page to the EXACT same page the user is viewing. Kinda like window.location.refresh(), but it refreshes the page, means it empties some part of the cache and will reload images. I want it to simply open the page again, exactly like when I click a link refering to the same url. I've tried reload(), but it doesn't reload either.
window.location.reload();
window.location.refresh();
window.location = '';
window.location.href = window.location.href;
View 2 Replies
View Related
Feb 18, 2010
I have found nice short tutorial here: Rounded_Corners
It works fine unless I try to move it.
I have added only one DIV over all:
Now I see that my text (white) moved but not background.
How do I properly position the whole DIV of class "roundbox" ?
View 1 Replies
View Related
Jul 31, 2005
I have a HTML file that has a lot of content. In it I have a <div id="d1">somecontent</div> block. Would it be possible for me to know the position of this d1 (absolute or relative) displayed on the page / window if not setting it first ?
View 5 Replies
View Related