- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 41
- Posts with Upvotes
- 39
- Upvoting Members
- 32
- Downvotes Received
- 7
- Posts with Downvotes
- 4
- Downvoting Members
- 7
I'm A Front-end developer who practices good standards with my projects or projects that i am assigned to work on. I'm for Hire.
- Interests
- Front-end and Back-end development
- PC Specs
- CPU: Intel CORE i7 6700 MOBO: MSI B150M Night Elf RAM: Kingston HyperX FURY 4gb x 2 DDR4/2100 (a total…
518 Posted Topics
Re: Hi, An old thread, but might help someone who needs it. You can detect any level of access by getting their username. <?php // Let's assume that you have set your database connection @ $conn OBJECT. // you might wanna use token keys to secure the access. $username = isset($_POST['username']) … | |
Re: Hi, here's a short example on how you would apply it inside an empty div. Only one div has some text inside and this will prevent any changes made by the drop event except from the 3 divs. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta … | |
Re: Hi, I'm not sure if this is what you seek for. But here's a way to do it somehow: assuming we have the following SELECT element with a class of "parent". jQuery(document).ready(function($){ $('.parent').children('option').each(function(index,item){ $(this).on('click',function(e){ e.preventDefault(); // This will return the text instead of its value console.log($(this).text()); }); }); }); my … | |
Re: Hi, Here's what i have so far, note that this will only work in IE9+ and as well with all modern browser out there... <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Copying text over the clipboard</title> <style> .wpic{ width:115px; height:115px; border:2px black solid; … | |
Re: Hi, might overseen this line: It should be like this ` if (response == "success") {` instead of | |
Re: Hi, hrushi9 here's a simple demo that ive created to give you an idea on how things work using the CSS animation. You may also use CSS Transition in repalce of this example. Just mix things up, experiment and you are good to go. <!-- By: Essential kindly keep this … | |
Re: Hi, Have you examine this part? | |
Re: Hi, this might come in handy to achieve what you exactly need. Check the link below. [Facebook Dev](https://developers.facebook.com/docs/plugins/share-button/#example) you can do it like this: <!-- Load Facebook SDK for JavaScript --> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = … | |
Re: Here's a simple javascript demo, that will generate different images depending on what day of the week occured! You can easily modify the whole script and convert it, to load different images depending on the day of the month. Just simply provide all valid path of your images inside the … ![]() | |
Re: This basic example will force the user to select atleast 1 option from the selection list. Hope you had a great time! Enjoy coding... [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>SomeTitle</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING function validateR(form) <!-- BEGIN HIDING … | |
Re: Here you go! You may try this 1 1st! [code=html]<html> <head> <title>AutoScrolling</title>[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING window.onload = pageScroll; function pageScroll() { window.scrollBy(0,-50); scrolldelay = setTimeout('pageScroll()', 200); /* Increase this # to slow down, decrease to speed up scrolling */ } // DONE HIDING--> </script>[/code] [code=html]</head> <body> <div> <iframe … | |
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</titles>[/code] [code=javascript]<script type="text/javascript"> <!-- … | |
Re: Try to install another browser. Perhaps you should try opera and see how things will go! | |
Re: You can submit your form by stating it inside your conditional statement. e.g [code]if ( true ) { document.formId.submit(); return true; } return false;[/code] | |
Re: Here's a bit of example of getting Javascript variables into cells. [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!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" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title>Getting Javascript Variable and Display into Table Cell</title> <style type="text/css"> … | |
Re: You can skip some of the lines in your php code, by simply creating a new .txt file and then save it as [color=red]incorrect.txt[/color] in the same directory along with your [color=red]test.php[/color] file and include the single word you need -- which is the [b]incorrect[/b] word... Here's the code for … | |
Re: Try this : [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#cssl21" media="screen"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html id="xhtml10S" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Window-Target" content="_top" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Free Live Help!</title> … | |
Re: It depends on what purpose you intend to use it. Both performs well if you spend extra buck's on your RIG. . . | |
Re: Try this simple demo of a custom popup: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html id="html40L" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Window-target" content="_top"> <title>Free Live Help!</title> <style type="text/css"> <!-- label + div { margin-bottom : 1em; font … | |
Re: Or you can simply set different style sheets for specific media types. Like for example: [code=css]<style type="text/css" media="all"> /* <![CDATA[ */ /* Applying external style sheet */ @import "your-default.css" screen; @import "css-mobile.css" handheld; /* For inline style */ @media screen { html, body { height: 100%; min-width: 800px; max-width: 1024px … | |
You are free to use and modify my layout in any purpose, and I hope you find this useful! Enjoy... | |
Re: The only way to capture or embed .txt file into (x)HTML document, is to use AJAX. Just let me know if you need some example over this thing. | |
Re: This remains unsolved... But let me help you a bit! You can achieved desired output, by doing this code: [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!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" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" … | |
It performs the toggle function to change the class of the paragraph tags and reverts back to the default class name when user rollout of it. You can embed the CSS style code inside the Head section of your page using HTML style tag. Code is as follows : | |
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</titles>[/code] [code=css]<style type="text/css"> <!-- … | |
Re: Here you have it: [code=javascript]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Test Page</title> <script type="text/javascript"> <!-- check = function( form ) { try { with( form ) { // Dual Mode if (!( chb0.checked ) && !( chb1.checked )) … | |
Re: This should work! If not then try to check you plug-ins... [code=html]<html> <head> <title><!-- Sample --></title>[/code] [code=javascript]<script type="text/javascript"> <!-- function playSound( mysound ) { thisSound = document.getElementById(mysound); thisSound.Play(); } //--> </script>[/code] [code=html]</head> <body> <embed src="someaudiofile.mp3/mid/wav" autostart="false" width="0" height="0" id="sound1" enablejavascript="true" /> <br /> <a href="javascript:void(0);" onmouseover="playSound('sound1');">Play Sound!</a> </body> </html>[/code] | |
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"> function … | |
Re: Hi, you could try this: [CODE]<html> <head> <title>Live Help</title> <script type="text/javascript"> <!-- var getVal = (function() { var obj = ( function( thisId ) { var myObj = document.getElementById( thisId ) || document.all[ thisId ]; return myObj; } ); var newtext2 = obj( "reply" ).value; obj( "layer1" ).innerHTML = (( … | |
Re: Hi, You can try this sample layout: [CODE]<!DOCTYPE html> <html> <head> <title>Language Translation Services | Wordbank</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css" media="all"> html, body { font-family: Arial, sans-serif; font-size: 95%; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; background-color: #fff; color: #000; margin: 0px; padding: 0px; height: auto; … | |
Re: Simply insert this within your [color=green]head[/color] tags. [code=javascript]<SCRIPT language="JavaScript"> <!-- BEGIN HIDING var browserName=navigator.appName; var browserVer=parseInt(navigator.appVersion); if ((browserName=="Netscape" && browserVer>=3) || (browserName=="Microsoft Internet Explorer" && browserVer>=4)) version="n3"; else version="n2"; if (version=="n3") alert("Your browser passes the test"); else alert("You need an upgrade, I think."); // DONE HIDING --> </SCRIPT>[/code] | |
Re: Hope this will solve the issue! Please let me know if you find any problem on this script! [code=html]<html> <head> <title>SomeTitle</title>[/code] [code=css]<style type="text/css"> <!-- fieldset { background-color: #F5F5F5; border: 4px groove #C0C0C0; width: 200px; } legend { color: #000088; } form { margin: 6px; padding: 2px; color: #C0C0C0; } form … | |
Re: you may try this --> [CODE]<!DOCTYPE html> <html> <head> <style> div { color:red; } </style> <script type="application/javascript"> onload = ( function() { var elem = document.getElementsByTagName('*'); var ids = [ 'A', 'B', 'C', 'D' ]; var cLen = ids.length; for ( var x = 0; x < cLen; ++x ) … | |
Re: Hi, I'm not sure if this is what you need, hope it help's.. . [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>Live-Sample::Dynamic Text</title> <style type="text/css" media="all"> <!-- html, body { margin: 0; padding: 0; } body { font: 60% … | |
Re: Hi everyone, Lucky, here's a simple demo, showing how you can removed items inside your array using the [icode]pop(index)[/icode] method. [code=javascript]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>www.daniweb.com</title> <script type="text/javascript"> <!-- window.onload = function() { var bigArray = []; … | |
Re: Sometimes it deals on the issue of loading order. Try using this demo and see how it worked: tested in IE6, FF3, OP9- Please read all instructions from the code lines. [code=javascript]<?xml version="1.0" encoding="utf-8"?> <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" … | |
Re: You can try this sample if you prefer using cookie session. Simply include these [b]cookie.js[/b] in your (x)HTML document's. [b]cookie.js[/b]: [code]var now = new Date(), expDate; var eDate = now; eDate.setTime( eDate.getTime() + (( 24 * 60 * 60 * 1000 ) * 31 )); var data; var cookies; var … | |
A simple progress bar that you can addUp with some common events' like redirecting the user to another source. And while they wait let this progress bar do some work for them... | |
Re: Hi david, you can try this request instance [CODE=javascript]var GetXmlHttpObject = ( function() { // Building request object >>> var xhr = 0; try { try { // Handles all major browser, except IE >>> if ( "XMLHttpRequest" in window ) { xhr = new XMLHttpRequest(); } else { var … | |
Re: Hi beanryu, i prepared some document sample for you, which you can used as referenced when you are mapping elements inside your document. [code=javascript]<?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/css" href="#css21" media="all"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="xhtml10" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- W3Cs Standard Template : XHTML … | |
![]() | Re: You may try this! But am sure they wont grant you any access for this 1! But its worth to try... [code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01Transitional//EN"> <html> <head> <title>Some title</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <p align="left">[/code] [code=javascript]<script type="text/javascript"> <!-- BEGIN HIDING c_url = new String(); n_bytes = … |
Re: Try this: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Control page</title> <script type="text/javascript"> <!-- var Win; var page_index = 0; var page = new Array(); page[ 0 ] = "http://www.trafficswarm.com/cgi-bin/swarm.cgi?493555"; page[ 1 ] = "http://www.ts25.com/surf/index.php?surfer=jy1006"; page[ 2 ] = "http://www.trafficg.com/supersurf.php?member=jy1006"; page[ 3 ] … | |
Re: Hi, this might also help you out, learning your way in JavaScript... [url="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf"]ECMAScript Standards[/url] | |
Re: Hi, you can try this: [code=html]<input type="password" id="pw" name="pw" value="123456" size="25" maxlength="12" />[/code] | |
Re: Hi Emiliya, AJAX is not necessary for this issue. I'll provide you with a short example on how you would be able to catch value from the opened window using [B]postMessage[/B]. Code for the start/home page: [code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; … | |
Re: Hi, Your code looks fine, all it needs is a little arrangement in the order of the tags last posted by [B]urtrivedi[/B] and including changes made by [B]scrappedcola[/B]. Might as well give it a try and see if i can fit your needs... [code]<HTML> <HEAD> <TITLE>Fun with Phonics</TITLE> </HEAD> <BODY> … | |
Re: Hi everyone, I only want to share all the knowledge i have to all the people who need it with or without those badges. Sorry if someone hates that... [b]essential[/b] | |
Re: Hi, here's a short demo on how you would be able to show the time difference between the current date and target date. [code]<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!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=UTF-8" /> <meta http-equiv="Conent-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" … | |
Re: Hi, this is just another option: [CODE]<html> <head> <script type="text/javascript"> function changeAction1(frm) { frm.action = "get.php"; } </script> <title></title> </head> <body> <form enctype='multipart/form-data' action='' method='post' name='form' id="form" onsubmit="return changeAction1(this);"> <div id="$counter"> <input type='submit' name='webpage' value='Add Webpage'> </div> </form> </body> </html>[/CODE] ![]() |
The End.