[Solved] Create 3 boxes side-by-side

There a million ways to do this, but here is just one: HTML <div class=”box”> <header> <h2>stuff</h2> </header> <div class=”body”>things</div> </div> <div class=”box”> <header> <h2>stuff</h2> </header> <div class=”body”>things</div> </div> <div class=”box”> <header> <h2>stuff</h2> </header> <div class=”body”>things</div> </div> CSS: body { /* body hack for jsfiddle, do not use */ overflow-x: scroll; width:900px; } div.box { … Read more

[Solved] Change structure of html with jQuery when responsive

So, what you want is to reorder the elements when the window is resized, right? You can try the following code… $(function() { var screenBig = $(window).width() >= 640; $(window).resize(function() { if($(window).width() < 640 && screenBig) { resizeSmall(); screenBig = false; } else if($(window).width() >= 640 && !screenBig) { resizeBig(); screenBig = true; } }); … Read more

[Solved] PHP echo in javascript not displayed in browser [duplicate]

PHP executes at runtime, your code creates something like this: function handleEvent(e){ if(e.keyCode === 13){ hello } } echo is a php function which simple prints eveything inside “” into the markup. So just print with php what you else would write by hand: function handleEvent(e){ if(e.keyCode === 13){ <?php echo “alert(\”hello\”);”; ?> } } … Read more

[Solved] I want to send a value to hidden element from javascript [closed]

Here i finished it for you and this way works, because u get an htmlObject element or input element here you should do it object.id or value or whatever u want to get and than use it later… function EditTableCell(a) { var Myp= document.getElementById(a); var nam=Myp.textContent; var newHTML='<p id=”‘+a+'”><input size=”35″ type=”text” name=”edit’+a+'” id=”edit’+a+'” value=”‘+nam+'” /><input … Read more

[Solved] HTML code of table with various row and column size

Sure you want html?? <table align=”center” width=”590″ height=”590″ > <tr> <td align=”center” height=”80″ colspan=”4″>central text</td> </tr> <tr> <td align=”center” height=”80″ colspan=”2″>col</td> <td align=”center” colspan=”2″>col</td> </tr> <tr> <td align=”center” height=”40″>t</td> <td align=”center” height=”40″>t</td> <td align=”center” height=”80″ rowspan=”2″>t</td> <td align=”center” rowspan=”2″>t</td> </tr> <tr> <td align=”center” height=”40″>t</td> <td align=”center” height=”40″>t</td> </tr> <tr> <td align=”center” height=”30″>t</td> <td align=”center” >t</td> … Read more

[Solved] Css for U shape with arrow [closed]

Is this what you were looking for? .icon-container { background-color: transparent; overflow: hidden; width: 80px; } #curve { height: 60px; width: 100%; background-color: none; border-radius: 50%; border: 5px solid #999; left: 50%; transform: translateX(50%); } #arrow { width: 0px; height: 0px; border-top: 10px solid transparent; border-left: 20px solid #999; border-bottom: 10px solid transparent; position: absolute; … Read more

[Solved] Get Os and Country flag from IP [closed]

<img src=”http://api.hostip.info/flag.php?ip=153.50.106.161″ alt=”IP Address Lookup”> Tested it via random ip 153.50.106.161 from ip test generator About the OS, i found some useful tutorial via PHP/JSON (didn’t try it but they got live demo which i believe its working). 1 solved Get Os and Country flag from IP [closed]