Jump to content

T1000Android

Members
  • Posts

    65
  • Joined

  • Last visited

Posts posted by T1000Android

  1. Hi guys! I found this code on the internet the other day. The code works fine: it enumerates the methods of the document object.

    <script type="text/javascript">function getMethods(obj) {  var result = [];  for (var id in obj) {	try {	  if (typeof(obj[id]) == "function") {		result.push(id + ": " + obj[id].toString());	  }	} catch (err) {	  result.push(id + ": inaccessible");	}  }  return result;}alert(getMethods(document).join("\n"));</script>

    What I don't understand is what's that on the third line? I know that "var result = [];" is a variable named "result" but what's that it's equal to? What does the array operator mean when given as a value to a variable?

  2. Hi all! I'm considering to learn FLASH. But in the tutorials I've watched so far, I saw there was some code, but most teachers used the interface to achieve things in FLASH. My questions are: 1. Do I learn flash as an ECMAscript, or do I just learn to use the interface of Adobe FLASH CS# ?2. Does w3schools have a flash tutorial any more?3. If not, where is the best place to start? Thanks!

  3. Thanks for the code. I'll try it. I'm looking at my site in Mozilla and IE9, not Safari (I don't have Safari). It won't even work in IE9. It just jumps down to:"Your browser doesn't seem to support the video tag." EDIT1: OOPS!Looks like my IE9 is broken. I went to a site with a non-flashplayer video and I got an error: "Internet Explorer cannot open the Internet Site www.blabla.com- operation aborted" Looks like I need some plugins. EDIT2: I converted the video to swf and it does work in flash using the code you gave me. Controls are added using javascript or flash? Thanks a bunch.

  4. Ok! I've converted the movie to all 3 formats and it does work. I have to mention that this does work only through the server when using the code OTTO suggested:

    <video id="video" controls='controls'>  <source src="videos/clip.mp4" type="video/mp4"/>  <source src="videos/clip.webm" type="video/webm"/>  <source src="videos/clip.ogv" type="video/ogg"/>  Your browser doesn't seem to support the video tag.</video>

    Why is that? Shouldn't it work simply through the browser? The movie plays using quicktime player, not flashplayer as I expected. How do I use flash player like youtube?The code doesn't work in IE, sorry to say. How do I make it work in IE? Thanks guys. You have been very helpful so far.

  5. No, sorry, I get the same thing. I tried playing it through the server and through the browser, same result. What next? I got it to work using quicktime player but I want it to work using the same player as youtube(flashplayer).

  6. Hi all. I'm trying to embed a movie into my test html page but it doesn't work. I used this code:

    <video id="testMovie" src="spacetest.mp4" controls preload autoplay width="800" height="600" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'></video>

    All I get is a grey player saying: "Video format or MIME type is not supported" The questions are: 1. Is there something wrong with the code?2. What am I doing wrong?3. Do I need to run it through my server in order for it to work? I only tried with my XAMP server off, directly through the browser. Thanks in advance.

  7. Hi! I want to try to make a forum skin of my own. HTML, CSS, JS and PHP are not a problem, however, locating the necessary skin files, is. I am a full rights admin at a website, which is NOT running off a server on my local machine. I found a "look and feel" section in the admin CP, but when I try to export the skin, all I get is an XML file, with which I cannot work with. The questions are: How do I get the skin files? Where are they located on the server machine? I was expecting PHP, HTML and CSS files, why do I get an XML file? I have to mention, that I can contact the owner of the server machine and ask him for the files. Thanks!

  8. Hi guys!I am fairly new to web design and I was wondering what functional elements are obligatory for any website. I am reffering to elements like !DOCTYPE, <html>...</html>. Is a website accepted by a domain name company without these elements?Thanks!

    • Like 1
×
×
  • Create New...