20,316 Topics
It is a very interesting question about downloading flash files embeded in Video JS from HTML 5 standart. Here we have 2 flash pages. 1: [url]http://resursi.e-edu.bg/content/math3/runtime/rtleo/scorm-flo.html?sco=../../content/uc_m5_l008.flo&width=788&height=553&recording=true[/url] 2.[url]http://resursi.e-edu.bg/content/s1/runtime/rtleo/scorm-flo.html?sco=../../content/uc_s3_l093.flo&width=788&height=553&recording=true[/url] As you see we have different id's uc_m5_1008 and uc_s3_1093; Interestingly we have .flo format?! and video js in a script file. Also …
Check this out. Open up any website (one with many pictures is better) and, after loading it, paste this code in the address bar: [code]javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);[/code] :)
can you please post me codings for creating webpage using javascripts...i need to do an assignment of it on monday...am helpless:-/
I have a combobox that is being sorted alphabetically(by default). I need to change the position of a particular item to the last index for a certain requirement. Isn't there any other way than disabling the sort and manually position the items?
[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="date" content="2003-12-02T09:54:03+08:00" /> <meta http-equiv="imagetoolbar" content="no" /> <title>Dynamically enlarge image on mouseover and mouseout</title> <style type="text/css"> body {margin:64px;} #apDiv3 { …
Hey guys, I am building a page where I will have five links and each one will open a different image inside a div, but i need this image to be an image map, I created the image maps and the links, but I am having great difficulty in getting …
[CODE]<?php echo '<!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"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />';?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="js/jquery.jMagnify.js" ></script> <script type="text/javascript"> $(document).ready(function(){ $(".menu2 a").append("<em></em>"); $(".menu2 a").hover(function() { $(this).find("em").animate({opacity: "show", top: "-75"}, "slow"); var hoverText …
I have an HTML page(PAGE 1) that allows a user to select an HTML form element, and get it displayed on the next page(PAGE 2) when the user clicks "next". What I want to do is on the display page(PAGE 2), be able to display the newly created HTML form …
Hello there, I have a JSP page that has a couple of images in, when I type the address of the JSP directly in my browser the page loads, with images and all. But when I go the page, through my servlet [RequestDispatcher.forward()] the page loads but the images are …
I'm Ryan O'Hara from Parksville, 13 years old, VB.NET/C#/JavaScript programmer, nice to meet you all! :)
Hi! I am looking for a function that will replace last occurence of a substring from a string: tmpStr: xxx, yyy, zzz, sss, The desired outcome: xxx, yyy, zzz and sss (ie: remove last letter and then replace last occurrence of ",") The string can differ, * xxx, * xxx, …
Hi everyone, My page need to be automatically refresh in every 20 minutes and get the data from table and show it. This I did simply. The time is calculate from when I load my page (i.e) If I load my page at 10:25 AM then it automatically refresh at …
Hey everyone! After some research I have found that I need some javescript help to process a users click from a html drop down select list.. I am trying to create an admin area for a website in php and using mysql database. In my admin home page, I have …
Hello, I have a barcode scanner and when a field is scanned it should autotab to the next field for population. I have tried this before but cannot seem to get it to work the way I would like. It should auto tab if the field in not null, i …
Hi Is it possible to have a different search criteria on each tab in a spry tabbed panel table? I have 5 different tabs along the top. In the first tab I have a form which brings back various fields of data and based on the following: [CODE]WHERE property_details.prop_type = …
I have 3 ASP list boxes. I would like to populate the second list box based on the selection in the first list box and based on the selection in the second list box, populate the third. I would like to do this using AJAX. How can I do it? …
i want to make a popup div for my games section in my website, so when i click an image a sort of layer pops up (not a new window) i need it so i can add swf games to it, what do i need to do or can anybody …
I am building a new jsp template and have been asked to make sure that the header elements eg two images at the right and left hand side are content manageable from our cmc so that users can put different images in there and reuse the template. I have set …
[code] <%! public String haversine(String lat1,String lon1,String lat2,String lon2) { int r = 6371; String val=null; double dlat=((Double.parseDouble(lat2))-(Double.parseDouble(lat1))); double dlon=((Double.parseDouble(lon2))-(Double.parseDouble(lon1))); double a = (Math.sin(dlat/2)*Math.sin(dlat/2))+(Math.cos(Double.parseDouble(lat1))*(Math.PI/180))*(Math.cos(Double.parseDouble(lat2))*(Math.PI/180))*(Math.sin(dlon/2)*Math.sin(dlon/2)); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); double d = r * c; if(d>1) val= ((d)) +"km"; else if(d < =1) val = ((d*1000)) +"m"; return …
Hi, I have such js code: [CODE]$(document).ready(function(){ $('#a').click(function() { alert('Handler for .click() called.'); }); });[/CODE] And I have a link in my page [CODE]<a id = "a" href="url">Link text</a>[/CODE] I checked the view source of web page, scripts are loaded, my js file is called bannerUpload: [CODE]<script type="text/javascript" src="/joomla15/media/system/js/mootools.js"></script> <script …
Any suggestion what's the best tab to use in loading external pages(html). Im also thinking of adding multiple subtabs within parent tab. I really need expert's opinion on this matter. Thank you
So.... Pretty strange thing is happening to me. I have a scrolling thumbnail marquee which on click pops up an image box div and replaces the thumbnail with a larger image, sets the src, then re-replaces the thumbnail. This works perfectly on my local machine but when uploaded to the …
I'm currently using Dreamweaver to rework my site. This includes a mix of HTML for most of the content, and a JavaScript menu bar on every page. When I preview the page in my browser, the menu bar is aligned left. Below is the code for my entire page. [CODE]<!DOCTYPE …
I'm creating a Dreamweaver CSS site based off a template I purchased. In this site, I want to have page with a gallery of my company's products. So I went to [url]http://smoothgallery.jondesign.net/[/url], used the "Gallery Set" setup, and put it into my web page. It all works GREAT...except the gallery …
when i run this in Dreamweaver (website preview) it works perfectly but as soon as i put it into FTP i got this ... [url]http://www.infinit0s.cba.pl/tutorial6/mathgame1.html[/url] here is the code [CODE]JavaScript / DHTML / AJAX Syntax (Toggle Plain Text) <!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> <meta …
Hello all, I was wondering how to do this: [LIST=1] [*]Enter values into and submit a form on site B from site A (using Javascript) [*]Load the resulting url into the current site (site A) (using Javascript) [/LIST] I have no idea if this is possible with Javascript, but any …
when i run this in Dreamweaver (website preview) it works perfectly but as soon as i put it into FTP i got this ... [url]http://www.infinit0s.cba.pl/tutorial6/mathgame1.html[/url] here is the code [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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Maths game</title> <script language="JavaScript"> var …
I can resize a textbox at runtime and do other modifications. However I want to move it left or right. I tried textbox1.location = new point (150,200) however the error, location not one of textbox asp... properties appears. Please let me know if there is any help for me. thanks
Hey guys im looking for an image rotator script with links, so every time the page is refreshed a new random image is displayed. The thing is, i need a script that doesnt have the location of the images in the script. I need a script like the current google …
i'm having problem displaying number of points scored in a game for every one right answer users scores 2 points... and i'm having little problem in displaying these points in a box below the game :( can any one help me out on that one thank you :) [CODE]<!DOCTYPE html …
ive been searching for a triple combo dropdown script with go button and cant find one! i found a double combo([url]http://www.javascriptkit.com/script/cut183.shtml[/url]) but im aiming for triple which they can choose country, State and city need help!
Hi what i want to do is pass a php variable in a script i've already got a drop down list now what i want to do is as soon as you click on any province in the drop down menu the cities appear in the text area. what is …
i just want to implement traffic calculator like this i want to implement Google map traffic calculator how plz help me i want like someone select a vehicle from drop down and in second and third drop down pickup and drop off location and when click to submit button a …
hi can somebody help me out i have form that the user need to fill and at the end of the form the use have to make a payment via alert pay which they will be taken to the page buy clicking on the alert pay button but haw can …
I simply want to input some from data into my javascript library. The form has the name "signup" and a link has on onclick property to call the "interface_signup()" function in javascript shown below. This is obviously a ridiculous way to do it, but my attempts to use "this" or …
Hello, I am trying to track down an issue with some content in a couple of popups generated with j-query. If you go to [url]http://streetkids.zuka.net/sandbox/map-new.05.html[/url] and role over and click on ethiopia on the African continent, you will get a map that pops up. On the map you will see …
<html> <head> <style type="text/css"> #apDiv1 { position:absolute; width:595px; height:298px; z-index:1; left: 412px; top: 38px; } --> </style> </head> <title>safarina JavaScript</title> <body align="center"> <div id="apDiv1"> <script type="text/javascript"> function MM_validateForm() { if (document.getElementById){ var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { …
I am able to incorporate CSS into the HTML, like this: [CODE]<tr><td [B]style="background-color:#FFFF00;"[/B]>test</td></tr>[/CODE] How can I incorporate CSS into javascript? [CODE]document.writeln("<tr><td [B]style="background-color:#FFFF00;"[/B]>" + "test" + "</td></tr>");[/CODE] The javascript code doesn't work or this is it even possible? Thanks
I have an Ajax Tab Panel on my webpage with three tabs in it. On my first tab i have some textboxes. Now I want to give Alert message to user if user navigates to another tab after changing value of any of the text box. I want to perform …
So, basically I'm trying to fetch part of a json feed and output just that. Example, theres a bunch of posts, comments, and an image on the post. I want to only fetch the image. I've started out with [CODE] document.getElementById('url').innerHTML= url.value; r=function(data) {url=data['results'];};[/CODE] html [CODE]<script type="text/javascript" src="http://www.com/search.json?q=word&callback=r"></script> <style type="text/css" …
i'm having little problem here, i have got timer here that counts down from a set time, but what i want to do now is instead of having timer, i just want to make a counter so if(counter=10) stop the game, and not when time = 0 [CODE]<!DOCTYPE html PUBLIC …
I want to put on one of my HTML pages a message box with editing options, just like the one you are using in any forum to post a message (with options like -bold, italic, underline,font color, font size, adding files, etc) where can I get a ready code?
how to use a java script variable on the same jsp page??
Good Morning, I'm not really sure where to go with this line of thought, so decided to bring it here where the logical thought processes reside... ;) What I have is this... A new membership program that has multiple levels that members can be paid on. Each level is tracked …
Hello everyone, I am working on a program right now and part of the idea involves a pop-up menu. What I need is something like: A small box in the program, On MouseOver small box, small pop-up menu opens up next to the small box, On MouseOver menu option 1, …
I am using facebox to display a contact form, however when the user selects submit I would like the action which for this example I shall call action="contact_send.php" to also open in a facebox. Currently it is easy to open a link into a facebox by declaring the rel attribute …
i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // …
Hello all, I am using the zoommap plugin to develop an interactive type map. I am also using the maphilight plugin to create imagemap rollovers/popups. So the functionality is: a world map; rollover a country, it hilites, shows the name of the country. When you click on the country, a …
im using ajax to load the values into combo box two after the user chose a category from combo box 1. but the contents are not loading in the combo box one. i do know how to do it in php but using html form cant make it work. the …
I am making a magic squares game with javascript. When I click on an image and the function move is invoked I get the following error: Message: 'target.id' is null or not an object Line: 32 Char: 2 Code: 0 As you can see in my html the images do …
The End.