Let's say you want to send a short private message to your friend, but don't want grandma to snoop around and find it. One way is to use the Python Image Library (PIL) and hide the message in a picture file's pixels. Just looking at the picture you will barely detect any difference between the before and after picture. All your friend needs is the decode_image portion of this simple code to get the message back.

Member Avatar
Member Avatar
+5 forum 11

Making sites is nice and fun but what if you don't want everybody too see something like an admin panel or maybe a special button. Well this tutorial helps you understand how to add a password to a php site in a simple manner. There are two techniques you can use. One is to use a database which allows you to have a group of users who may access the site. Another technique is to have pre defined variables that check if the values match the value of the variable. In this tutorial you will get to know the basics …

Member Avatar
Member Avatar
+5 forum 6

hi, I need a software to change my ip address.Please can you tell me about any software?

Member Avatar
Member Avatar
+0 forum 3

It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to do this. This example is designed to hide the parent form whilst a child form is displayed then to redisplay the parent when the child is closed. In this instance, no data is passed between the parent and the child. To see how to do this check [URL="http://www.daniweb.com/code/snippet298708.html"]my tutorial[/URL] for …

Member Avatar
Member Avatar
+1 forum 22

hey guys so im getting > Notice: Undefined index: spouse-salutations in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 18 > Notice: Undefined index: spouse-state in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 24uoted Text Here > Notice: Undefined index: child-salutations in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 30 > Notice: Undefined index: child-state in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 36 and its really frustrating because $spousesalutations = mysql_real_escape_string($_POST['spouse-salutations']); $spousestate = mysql_real_escape_string($_POST['spouse-state']); $childsalutations = mysql_real_escape_string($_POST['child-salutations']); $childstate = mysql_real_escape_string($_POST['child-state']); I think it has something to do with how my page works. my page is a contact form page that has all the general : name email etc and two radio buttons one with label "Spouse …

Member Avatar
Member Avatar
+0 forum 2

hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> <option value="Hajjah">Hajjah</option> <option value="HM">HM</option> <option value="HRH">HRH</option> <option value="Miss">Miss</option> <option value="Mrs.">Mrs.</option> <option value="Mr.">Mr.</option> <option value="Pehin">Pehin</option> <option value="Professor">Professor</option> <option value="Raja">Raja</option> <option value="Tan Sri">Tan Sri</option> <option value="Tengku">Tengku</option> <option value="Tuanku">Tuanku</option> <option value="Tun">Tun</option> <option value="Tunku">Tunku</option> <option value="Ungku">Ungku</option> </select></br> <label class="salute-label">*If a person has many salutations, choose the highest form of salutation*</label> </p> <div style="height:0"><label>First Name …

Member Avatar
Member Avatar
+0 forum 2

Hi How to hide my source code so to not be viewed? I think this line of code solve it but where can I put in my source code? <body oncontextmenu="return false"> </body> And This is my code <!doctype html> <html> <head> <meta charset="utf-8"> <title>HTML5</title> <meta name="description" content=""> <body oncontextmenu="return false"> <style> body { background-image: url(pics/paris.jpg); background-position: center top; background-size: 105% auto; } </style> </head> <h3 align="center">Hello World</h3> </body> I appreciate your help

Member Avatar
Member Avatar
+0 forum 9

I have an application with a filenames a bit long. I would like to remove the name of the file and extension of the php files and only show my domain or server name. Example: this is what i have: www.example.com/dir/my_long_file.php This is what i need. www.example.com

Member Avatar
Member Avatar
+0 forum 4

Suppose I had 3 divs, each div has at least one hide/show button. The problem is when I click a show button, both 3 divs will show ups. Example: <div id="container"> <div class="course"> <a href="#" class="clickshow"> Click me to Show</a> <div class="hidden"> Hello </div> </div> <div class="course"> <a href="#" class="clickshow"> Click me to Show</a> <div class="hidden"> Hello </div> </div> <div class="course"> <a href="#" class="clickshow"> Click me to Show</a> <div class="hidden"> Hello </div> </div> </div> <script> $(document).ready(function(){ $(".course a.clickshow").click(function(){ $(".course div.hidden").show(); }) }); </script> When I click show button, it shows up all. Then, I tried to change every div into …

Member Avatar
Member Avatar
+0 forum 3

Hi all, I'm currently looking at this [JSFIDDLE](http://jsfiddle.net/MH8e4/6/) and it's 50% of what I need. I have a series of Accordions on my page (a list of courses). What I would like to do is assign these accordians to categories so that when a checkbox is pressed with the id of `security` any accordians with the security tag will show. If someone checks security and cisco all accordions with cisco AND security will show and so forth. If you don't wan to open the JS Fiddle... the HMTL: <input type="checkbox" id="set_1" checked> click to show text1 <p class = "wpbook_hidden …

Member Avatar
Member Avatar
+0 forum 1

Hello i need help with javascript on how to show and hide ads as i ont know much about javascript <html> <h2>Hide Div in JavaScript</h2> <script language=javascript type='text/javascript'> function hideDiv() { if (document.getElementById) { document.getElementById('div').style.visibility = 'hidden'; } } function showDiv() { if (document.getElementById) { document.getElementById('div').style.visibility = 'visible'; } } </script> <body onload="javascript:showDiv()"> <button onclick="javascript:hideDiv()">Hide</button> <button onclick="javascript:showDiv()">Show</button> <div id="div"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-xxxxxxxx"; google_ad_slot = "xxxxxxx"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlexxxxxxx.com/pagead/xxxxxx.js"> </script> </div> </body> </html> Above code works if i put hellow world between div but it doeesnt if i put ad code. …

Member Avatar
Member Avatar
+0 forum 1

Hi all, I created a blank or empty html file, is there a way the <html> and <head> tags cannot be detected by firebug(note: in view source, it is empty)?

Member Avatar
Member Avatar
+0 forum 2

Does anyone how to hide excel macro worksheet each time excel 2007 starts up? using vba syntax thx

Member Avatar
+0 forum 0

I have a problem with vb.net tabcontrol in so far as I cannot change the individual tab widths. I can chang ethe sizecontrol to fixed and alter all of the tabs but not individually. Ordinarily it would not be a problem with the tabs autosizing by the text size, but I have sometimes in my programme tabs with no content which I would like to hide, this I thought would be easy as just give it no name, but the tab remains and the size seems to have a minimum which is too big. So to summerize. I want to …

Member Avatar
Member Avatar
+0 forum 9

loop through javascript show and hide div

Member Avatar
Member Avatar
+0 forum 2

Hi, is there another way of hiding or formating column value in asterisk in select statement? im using the command replace SELECT REPLACE([Item].[Price],[Item].[Price], '**********') AS Price From Tablename it works fine, but is there anyway to do this? Instead of replacing/forcing the value to display asterisk, i just need if possible the same value (of price) only masked to asterisk because i need to add the total in crystal report thanks for your help

Member Avatar
Member Avatar
+0 forum 4

<?php session_start(); include("connection.php"); $id=$_SESSION['id']; ?> <!DOCTYPE html> <html class="beautiful js " xml:lang="en" lang="en"> <head> <link href="120gb_files/index_packaged.css" media="screen" rel="stylesheet" type="text/css"> <title>mackbook_how to find</title> </head> <body> <form method="post"> <div class="box"> <div class="button"> <select id="screen_size" class="fancy" style="border:1px solid #ccc;" > <option selected="selected" value="">Screen Size</option> <?php $sql="select * from `mackbook`"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> <option data-id="965" value="<?php echo $row['screen_size'];?>"><?php echo $row['screen_size']; $_SESSION['size']=$row['screen_size']; ?></option> <?php }?> </select> </div> <div class="button" style="margin-top:50px;"> <select id="processor" class="fancy" style="border:1px solid #ccc;display:none"> <option selected="selected" value="">Processor</option> <?php $sql="select * from `mackbook`"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> <option data-id="970" value="<?php echo $row['processor']?>"><?php echo $row['processor']; $_SESSION['processor']=$row['processor']; ?></option> <?php }?> </select> </div> <div class="button" style="margin-top:50px;" …

Member Avatar
Member Avatar
+0 forum 3

Hello I have made a little program in C#. I am writting it in notepad and compiling via command prompt. But when i start that program there is console window and I dont know how to hide it. Here is the code: [CODE]using System.Diagnostics; class Program { static void Main() { Process.Start("myfile.exe"); System.Threading.Thread.Sleep(50000); Process.Start("http://myweb.com"); } }[/CODE] sorry for my english

Member Avatar
Member Avatar
+0 forum 6

Is there any way to get this to work in Internet Explorer? It shows/hides multiple rows in every other browser, but will only show one class's row in IE. Any help would be great. Here's the code. Thanks! <style type="text/css"> li.merk { list-style:none; display: block; width: 925px; padding:8px; margin-top:-20px; } .jamactive { width: auto; padding: 6px 11px; background: #0066CC; border: solid 1px #000099; font: 12px/100% Tahoma; font-weight: 500; letter-spacing:2px; color: #ffffff; -moz-border-radius: 5px; -webkit-border-radius: 5px; -webkit-appearance: none; cursor: pointer;} .jamactive:hover { background-color: #000099; border: solid 1px #000066;} .jaminactive { width: auto; padding: 6px 10px; background: #666666; border: solid 1px #000000; …

Member Avatar
Member Avatar
+0 forum 9

Trying to display events on my website based on what my clients want to view. I have 3 checkboxes setup to toggle the connected events, but I can't seem to make the onclick handle more than 1 event at a time. Basically, I want to know 1) how to display more than one tr row'd event with the selection of any given checkbox. 2) how to have all boxes checked on the page load (checked=true only checks the box with no info showing) 3) AND/OR how to create a CHECK ALL option 4) and, lastly, how to give it a …

Member Avatar
Member Avatar
+0 forum 3

Hi there fellow daniweb programmers I have problem in running function in javascript <script type="text/JavaScript"> function toggle() { var e = document.getElementById('target_<? echo $id; ?>'); e.style.display = 'none'; } </script> I have button that generated in php code so its repeating itself <li><a id="target_<? echo $id; ?>" href="like.php" onclick="toggle()"><img src = "like.png" />Like</a></li> the output code will be something like this <script type="text/JavaScript"> function toggle() { var e = document.getElementById('target_1234'); e.style.display = 'none'; } </script> <li><a id="target_1234" href="like.php" onclick="toggle()"><img src = "like.png" />Like</a></li> but its not workin as I desire, if I remove the `target_<? echo $id; ?>` the first …

Member Avatar
Member Avatar
+0 forum 2

Hey there. The situation is like this: 1. The user clicks a button. 2. Tooltip pops up. 3. The user clicks the button again OR the user clicks anywhere outside the tooltip. 4. The tooltip is removed. Now I can get either of the events described in step 3 to work, but I can't get them to work at the same time. My code is in short like this (I'm not copying all code, just explaining it, so not all functions that I mention are real functions as you will see ^^): button onclick="function() // Checks if tooltip exists and …

Member Avatar
Member Avatar
+0 forum 4

Hey Folks! I'm using a windows hook to scroll horizontally through a listview. I have it aligned so it only adds items horizontally. I have 2 big buttons I'm using to scroll right and left with nice bitmaps on them... The problem is the listbox has scrollbars appear when I fill it up. I don't want them. It's easy enough to turn .Scrollable = Off but then my buttons to scroll left and right don't work :( I'm using this (and user32.dll) to scroll `Private Declare Auto Function SendMessage Lib "user32" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal …

Member Avatar
Member Avatar
+0 forum 2

I have the show/hide table rows function working great now (thank you), but I am having a problem with using the back button. If someone has yes to one of the items (yes/no radio buttons) the onClick event in the input tag causes the appropriate info to display. BUT when I submit the form and then hit the back button (to make corrections) then the fields are hidden even though the yes button is clicked. I tried adding the following at the top of my code to initialize them based on the value of the radio button: function initShowHideRows(idName, clsName) …

Member Avatar
Member Avatar
+0 forum 6

I have this code to showor hide a div when click on button.But... If you ckick button the div appear.. but when you click again the div doesnt dissapear:| Code: function infoshowhide(){ if(document.getElementById('info11').style.display = 'none') { document.getElementById('info11').style.display = 'block'; } else { document.getElementById('info11').style.display = 'none'; } } *and i need something like this for final result :* function infoshowhide(){ contentxinfo=document.getElementById('info') + 'x'; //x is a nr i wish to make an array... info1 ...or info2 .. info3...this thing if(document.getElementById(contentxinfo).style.display = 'none') { document.getElementById(contentxinfo).style.display = 'block'; } else { document.getElementById(contentxinfo).style.display = 'none'; } }; i wish to make an array... info1 …

Member Avatar
Member Avatar
+0 forum 7

I am wondering how I can hide all divs on the page only using Javascript, I cannot use Jquery. Is there a way to do this without using the arrays that comes with document.getElementByTag? Or if there is not, could you show me how to hide all? Thanks!

Member Avatar
Member Avatar
+0 forum 4

hi,guys, i am facing on hiding the image source problem, may i know how to prevent user by using right click on image and check on the path image source location?thks for any info ya.cheers

Member Avatar
Member Avatar
+0 forum 8

hi, i need to empty all the divs whic has an id like 'bkoption' eg : my html code is like this [CODE] <div class="subsubsubmenu" id="bkoption1">some content</div> <div class="subsubsubmenu" id="bkoption2">some content</div> <div class="subsubsubmenu" id="bkoption3">some content</div> [/CODE] so when i trigger an on click function i need to empty all of these divs. i wrote something like this to test before coding the rest, which didn't work , or even didn't show an error on firebug. [CODE] $('div[id*="bkoption"]').each(function(index) { alert(index + ': ' + $(this).text()); }); [/CODE] what am i doing wrong? much appreciate reply.

Member Avatar
Member Avatar
+0 forum 3

Hello I was wondering if anyone might be able to help me? this is the jquery?I have two problems that I am hoping somone can help me with? What I am trying to do is when I click on a checkbox (#Facebook) it will display a div #widget-FB, and when I click on the close link (#widget-FB a.close), I can get it to delete. questions: 1:WHen I check the checkbox, it will set the cookie. The problem that I am having is that I am having is that hwen i click on the close link, I can't get it to …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am trying to create a series of links that will show an element and then open up up the a different element for each. I have it so that I can create on, but I was wondering if somone could help me figure out how I can get it to do 2 times. This is my jquery [CODE] $(document).ready(function(){ //Frontline $('#Frontline').click(function(){ $("#widget-FL").show(); $.cookie('display', 'shown'); }); $('.close').click(function(){ $("#widget-FL").hide(); $.cookie('display', 'hidden'); }); var display = $.cookie('display'); // Set the user's selection for the left column if (display == 'shown') { $("#widget-FL").show(); }; // Set the user's selection for the right …

Member Avatar
Member Avatar
+0 forum 1

The End.