518 Posted Topics
Re: Or you can also do it this way. [code=javascript]<html> <head> <title><!--Sample--></title> <script type="text/javascript"> <!-- window.onload = function() { document.getElementById('div1').innerText = 'Hello World!'; } //--> </script> </head> <body> <p><div id="div1" onclick="this.innerHTML = '<font color=red>GoodBye World!</font>';"> </div> </p> </body> </html>[/code] | |
Re: Here you go! As part of my demo i add up some functionality that will ask the user to input the numbers' of table that they wish to create! Hope this wil help you up... Good day! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=css]<style type="text/css"> <!-- table { width: 100%; margin-bottom: 4px; border: … | |
| |
Re: Maybe this quick example can help you. [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- var numValue = /^\d{1,3}[\,]\d{3}$/; var numOfCar = /^d{1,2}$/; function validate( form ) { var mfields = []; if ( !numValue.test(form.hV.value )) { mfields[mfields.length] = 'Please enter the price value of your house! On this following format-\n(eg. 1,000).\n'; … | |
Re: Sorry to keep you waiting! Here's your code and ive fixed some of the lines in your script. [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=css]<style type="text/css"> <!-- /* Part of the testing that's why i have to simplify things. Just dont forget to replace this one with ur default attribution */ li.blue a … | |
Re: Lets head back to the basic! Hope this 1 wil help you! Good day! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- function validate( form ) { var nameField = form.firstname; if ( nameField.value == "" ) { alert('\nMissing Information!'); nameField.focus(); return false; } else { alert('\nDo the next stuff!'); return true; … | |
Re: Here's a little example on how to deal with the readonly field! And date format should be like this ( dd-mm-yyyy ) before it react! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- var dateValue = /^[d]{2}[\-\.]{1}[m]{2}[\-\.]{1}[y]{4}$/; window.onload = function() { form1.txt1.onchange = function() { if ( dateValue.test( form1.txt1.value )) { var … | |
Re: Maybe this would help! [code=html]<html> <head> <title><!--Sample--></title> </head> <body> <span class="link2"> <a href="javascript:void(0);" onclick=" window.open('070595.html', 'Item 070595', 'toolbar=no,scrollbars=yes,location=no,directories=no,status=no,resizable=no,width=400,height=420');">Larger Image...</a> </span> </html>[/code] | |
Re: Am not sure if this is what you need! But i hope this example wil lighten up things! With following demo, I simply convert all values' into arrays and then pass it into the designated cell. Just don't forget to evaluate all needed data in your php code! Well that's … | |
Re: Since i don't have any reference on your code! Then i wil just play a simple example on disabling the list, if you picked them once. [code=html]<html> <head> <title> <!-- Sample --> </title>[/code] [code=javascript]<script type="text/javascript"> <!-- var x = 0; function a( thisIndex ) { x = x; if ( … | |
Re: Hope this example will help you on your way in learning javascript! And Good day to you! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING /* ADD OPTION TO YOUR SELECTION LIST */ function addOpt() { /* You can also use the addOption function instead of this one! But since … | |
Re: Hi there! Sorry if i post in shanti! Am just here to help! And tnx for the reps' that you gave me. Too add more functionality and precise handling of your data. Enjoy... [code=html]<html> <head> <title><!-- Sample --></title>[/code] [code=javascript]<script type="text/javascript"> <!-- /* Set the desired parameters to validate your field! … | |
Re: CrossBrowser Issue! You may try this 1 instead! [code=javascript]if ( document.all ) { document.all.out.innerHTML = "Content is Loading, please wait...."; } if ( document.getElementById && !document.all ) { document.getElementById('out').innerHTML="Content is Loading, please wait...."; }[/code] | |
Re: Try to bring it up inside the <head> tags! [code]<html> <head> <title>Some Title</title> [color=red]<!-- Your script goes here! -->[/color] <script type="text/javascript"> <!-- //Some codes' to run //--> </script> </head> [/code] And with external script! Simply link it in to your page by doing this... [icode]<script type="text/javascript" src="yourScript.js"> <!-- // --> … | |
Re: Maybe this would help. function addFolder() { folder=dhtmlmodal.open('Add Folder', 'iframe', 'add_folder.php?folder=My Photos', 'Add Folder','[color=red]toolbar=no,location=no,[/color]width=400px,height=250px,center=1,resize=0,scrolling=1,border=0'); } | |
Re: This should do it! Good day to you... [code=html]<html> <head> <title><!-- Sample --></title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING var today = new Date(); Date.prototype.greet = function() { hour = today.getHours(); minute = today.getMinutes(); second = today.getSeconds(); var greetings = ''; if (( hour >= 7 ) && ( hour < … | |
Re: Ok give me a moment! | |
Re: Hope this would help you! Instead of this one --> [icode]document.forms ['SellSheet'].elements['sellitsheet'].value = nc;[/icode] Try doing it like this --> [icode]document.SellSheet.sellitsheet.value = nc;[/icode] | |
Re: Hi there! It would be nice if i can see the code... | |
Re: This is why, you keep on getting those error--> [code]function r() { setTimeout([color=red]f()[/color],2000); }[/code] You forgot to quote it. [code]setTimeout([color=red]"f()"[/color], 2000)[/code] And here's my quick example about reloading those iframes' on your page! Hope it helps you... Good day.. [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> function f() { var refresh = … | |
Re: Here you go! Please don't forget to marked your thread solve, if it does solved the issue! Thanks! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING document.onchange = function( e ) { e = e ? e : window.event; t = e.target ? e.target : e.srcElement; if (( t.name ) … | |
Re: Maybe this would help! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- window.onload = myMessage; function myMessage() { var m = [ 'Hello', 'How are you?', 'Hope your enjoying my simple script!', 'I hope this will help with what you need!', 'Enjoy Javascripting...', 'Function Ended!']; n = 0; var stopMe = setTimeout('myMessage()', … | |
Re: Here you go! Please don't forget to marked your thread solve, if it does solved the issue! Thanks! [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING document.onchange = function( e ) { e = e ? e : window.event; t = e.target ? e.target : e.srcElement; if (( t.name ) … | |
Re: Sorry if im bein hasty on this one! Hope this wil solve the issue. Enjoy. [code=html]<html> <head> <title><!--Sample--></title>[/code] [code=css]<style type="text/css"> <!-- form label { color: #C0C0C0; font-weight: bold; } form input { text-align: center; } --> </style>[/code] [code=javascript]<script type="text/javascript"> <!-- var invalidChar = /[A-Za-z]{1}|[\-\.\s]{1}/; var maxLen = /[0-9]{4}/; function validate( … | |
Re: Sorry to keep you waitin! Here's the code and hope my sample wil brighten you up! Enjoy coding... [code=html]<html> <head> <title>Some title</title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING var s = ""; document.onclick = compilePartsList; function compilePartsList(form, e ) { e = e ? e : window.event; var thisPart = e.target … | |
Re: Assuming that this your [color=red]index.html[/color] [code=html]<html> <head> <title>index page</title>[/code] [code=javascript]<script type="text/javascript"> <!-- window.onload = function() { /* You must replaced this with your own page that you wish to be loaded */ window.open('floating.html', targe='_blank', 'toolbar = no, scrollbars = no, location = no, width = 500, height = 500'); } … | |
Re: Hi, there! Can you provide the actual code regarding this problem? | |
Re: The 1st problem goes with your script tags! Let's do some changes! Instead of--> [icode]<script language="JavaScript" type="text/javascript">[/icode] Simply do it like this! [icode]<script type="text/javascript"> <!-- //Your codes goes here! //--> </script>[/icode] [code=javascript]if (( sideA > num3 ) && ( sideB > num2 ) && ( sideC > num1 )) { … | |
Re: Simply set an [color=red]onbeforeunload[/color] event. One, you can give the user a chance to re-think the decision to leave the page by spawning a "yes/no" dialog box; and two, just having an onbeforeunload event will cause the browser to never cache the page: This means that the page will always … | |
Re: This was just an example, so i'll remove some parts of your documents! Create some test page and see how this thing work! And it would be nice if you can provide the actual codes' of your [color=red]imageflow.css[/color] [code=html]<html> <head> <title>some title</title>[/code] [code=css]<style type="text/css"> <!-- html { height: 100% } … | |
Re: Code Level: Basic Here's how we do it! --> code is as follows: [code=html]<html> <head> <title>Some Title</title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING document.onclick = click; function click( e ) { e = e ? e : window.event; t = e.target ? e.target : e.srcElement; /* Replace this one for specific … | |
Re: can you atleast throw the bits of your code!? What do u actually intend to do? | |
Re: Yeah it is possible, but you wil have to use some script to work on this 1! You may try [color=red][b]JavaScript[/b][/color] instead! | |
Re: A quick example on how to disable right click for specific link! Hope you had a great time! Enjoy... [code=html]<html> <head> <title>noRclick</title>[/code] [code=javascript]<script type="text/javascript"> <!-- document.onclick = function( e ) { e = e ? e : window.event; t = e.target ? e.target : e.srcElement; if (( t.name ) && … | |
Re: This is not about "Hukon" stuff! But [url=http://www.templateyes.com/css-templates.htm]This Link[/url] should help you out with what you need! Good day... | |
Re: Yeah it is possible! But in this case we'l have to use some script to work over it! You my try [color=red][b]JavaScript[/b][/color] instead! | |
Re: Try this attribution --> [icode]{ clear: both; float: left; width: 100%; background-image: url(images/someExample.gif); height: 212px; }[/icode] | |
Re: You may try this link- ---> [url=http://tetlaw.id.au/view/javascript/really-easy-field-validation][b]Click Me[/b][/url]! <--- | |
Re: A basic example on how to open newWindow using submit button! Enjoy coding... [code=html]<htm> <head> <title>SomeTitle</title>[/code] [code=javascript]<script type="text/javascript"> function myWindows( form, link ) { window.open( link, target='_blank', 'toolbar = yes, scrollbars = yes, location = yes, width = 5000, height = 500' ); } </script>[/code] [code=html]</head> <body> <form name="form1" onsubmit="myWindows(this.form, … | |
Re: Redirecting is quite a simple task to perform. But you wil be needing some script to work on this issue perhaps you can try javascript to perform that trick! And am sorry to say this, but you'll have to tranfer all the needed files' to your newly bought domain from … | |
Re: How many radio buttons' do you have in your form? | |
Re: Try 2 mixed this up along with your stylesheet attribution! [icode]html { height: 100%; }[/icode] Hope this would help you up! Enjoy! | |
Re: Am not sure if this wil solve the issue. But this may come in handy... [color=red]This will allow you to add function() calls once the page is loaded! It's ideal for use in scripts that may be executing along side other scripts that have already been registered to execute once … ![]() | |
Re: Simply add "&autoplay=1" to the src url in the embed tag [color=red][b]Example:[/b][/color] [code]<object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/c6SHsF1n9Qw"></param> <param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/c6SHsF1n9Qw[color=red]&autoplay=1[/color]" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"> </embed> </object>[/code] | |
![]() | Re: Just for a perfect start! You may try [url=http://www.free-css.com/free-css-templates/page1.php][b]this link[/b][/url] instead. They have 100's of HTML templates, that are easy-to-edit and ready-to-use! Good luck on your website! |
Re: Please feel free to modify this code to match your needs. If you have any question regarding this code you can [color=green]document.write('Me on my inbox').[/color] lol! Have a good day... [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Some title</title>[/code] [code=javascript]<script type="text/javascript"> <!-- … ![]() | |
Re: Please feel free to modify this code to match your needs. If you have any question regarding this code you can [color=green]document.write('Me on my inbox').[/color] lol! Have a good day... [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Some title</title>[/code] [code=javascript]<script type="text/javascript"> <!-- … | |
Re: Some basic example! [icode]<a onclick="alert('Hello World');" href="http://somelink.com">Click Me!</a>[/icode] |
The End.