- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 2
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Web Designer, Attorney, Economist
- PC Specs
- Win8/iOS/Ubuntu
**Introduction** Lets say you have a website with a mobile version and a desktop version. Pictures can be resized proportinally using css on either version. But not all html tags resize proportionally, for instance: iframes. **Javascript Function** includes: the *id* of the iframe, the *original width* and *original height* See … | |
Sometimes a css file wont load because of a slow connection or a conflict between scripts (or just any other reason). This specially problematic on mobile websites (looking at you IOS) where many standards are applied. So this little script will add a link tag to the head tag and … | |
1) onkeyup send textarea values to script 2) converts textarea value to array 3) loops thru the array 4) uses regex to check if its an email address 5) changes inner html of recipient div | |
Re: Your problem is syntaxis try adding the grave accent quote to tablenames and column names. $strSQL = "SELECT * FROM `employee` WHERE `projmgr` = '$UserName' AND `projname` = '"$_POST["projname"]"' "; I would also place the $_POST variable in a regular variable to avoid using extra quotes: $projname=$_POST["projname"]; $strSQL = "SELECT … | |
Re: 1. [BrowserShots](http://browsershots.org/) 2. [IETester](http://www.my-debugbar.com/wiki/IETester/HomePage) | |
Re: [code]<script type="text/javascript"> function switchclass(obj){ if (obj.className == 'small'){ obj.className = "big"; } else if (obj.className == 'big'){ obj.className = "small"; } } </script> <style> .small { width: 40px; } .big { width: 100%; } </style> <img src="/picture.jpg" class="small" onclick="switchclass(this);"> <img src="/picture.jpg" class="small" onclick="switchclass(this);"> [/code] css is up to you |