Jump to content

aseaofflames

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

About aseaofflames

  • Birthday 12/15/1990

Contact Methods

  • AIM
    aseaofflames13
  • Website URL
    http://www.projectvalpo.info

Profile Information

  • Gender
    Male
  • Location
    US

aseaofflames's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. if(!isset($_POST['delete'])) exit; change to if(!isset($_POST['delete']) || !file_exists($_POST['delete'])) exit; it will then also exit if the file doesn't exist
  2. What is your css code for the div?
  3. put the php code inside of the <div>
  4. you should prevent the code from executing unless a post has been sent if(!isset($_POST['nazwa'])) exit; echo "<a href=\"".$filename."">".$filename."</a>"; Loops
  5. your loop is completely wrong. $filterentries = mysql_fetch_assoc($selectentries); fetches the first row and then the next if it is called again...and so on... change it to while($filterentries = mysql_fetch_assoc($selectentries)) { and remove $arr=array("$title" ); foreach ($arr as $value) { should work (not tested) aseaofflames
  6. have you tried putting the onmouseout in the first span? also: restoreme(this,'images/off1.gif');" the this would refers to the span object, not the img object. the return false; is also misplaced, it should be the last statement in the onmouseover and onmouseout functions. working code: <div class="code"><script type="text/javascript"> function ShowText(id) { document.getElementById(id).style.display = 'block'; } function HideText(id) { document.getElementById(id).style.display = 'none'; } function replaceme(which,img) { document.getElementById(which).src = img; } function restoreme(which,img) { document.getElementById(which).src = img; } </script> <style type="text/css"> <!-- .box { background-color: #504D6F; border: 1px solid #FFF; height: 100px; width: 200px; padding: 5px; } --> </style> <span onmouseover="ShowText('answer1'); replaceme('img','images/on.gif'); return false;" onmouseout="HideText('answer1'); restoreme('img','images/off1.gif'); return false;" > <img src="images/off1.gif" id="img" style="position:relative; left:200px; top:200px; width:200px; height:100px;"></span> <span id="answer1" class="box" style="display:none;">text info</span></div> </body> </html> Demo: http://www.reactionwebdesign.com/demos/singlepage/imagebox.html for your second question, in order to change the position of the box, you must tweak the css ( try adding top, left)
  7. I fixed the login part of it, it now redirects you to "My Account" when you log in.
  8. There is a link back, it's the My Account link in the menu (on the forum). I will try to make it easier to find. To add Media you have to first link your Flickr, YouTube, or MetaCafe account. Then click sync. (you must have media on your Flickr/YouTube/MetaCafe account in order to add it) If you used the flickr account tester, it has no media uploaded to flickr, so there was nothing to add.
  9. But ajax is way cooler $_REQUEST covers all values in $_GET,$_POST, and $_COOKIE, I don't see how your code stores it into one of those variables.
  10. you could use ajax first assign the id 'content' to your <span> (<span id="content" contenteditable="true">) function addcontent() { //path to php script to handle post var path = "PATH_TO_PHP_SCRIPT.php" //get contents of editable text var content = document.getElementById("content").innerHTML; var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ // Something went wrong alert("Your browser broke!"); return false; } } } // Create a function that will receive data sent from the server ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ var r = ajaxRequest.responseText; document.getElementById("content").innerHTML=""; } } var php = "content="+content; ajaxRequest.open("POST", path, true); ajaxRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); ajaxRequest.setRequestHeader("Content-length", php.length); ajaxRequest.setRequestHeader("Connection", "close"); ajaxRequest.send(php); } the above code send a post to PATH_TO_PHP_SCRIPT.php (you can change this). And then clears the text box. The contents of your span are in $_POST['content'] on PATH_TO_PHP_SCRIPT.php;
  11. For those of you who do not want to sign up for an account, use: username: tester password: guest2009 If you sign up for an account, The beta activation code (the code to convert you account to Beta Tester status) is phpfreaks.
  12. I am working on a site that allows you to display all of your media in one place (without reuploading). It currently works with media uploaded to Flickr, YouTube, and MetaCafe. I am in need of Beta Testers. Please test for errors, security vulnerabilities, and ease of use. I could also use some suggestions on how to set up the page that displays the media. http://www.mediachief.net
  13. do you want all the keys in key1 and key2? if so use $key1[] in place of $key1 and $key2[] insead of $key2. This will make the keys arrays of the values from the database.
  14. sorry, if you want the code not to execute if no check box is set then put it right after the <?php tags and follow it with exit;
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.