Jump to content

neoaddict

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by neoaddict

  1. Not all of my images are HTML ones - the nav bar, footer and header aren't. I've got a lot of affiliates, topsites and news images, so that's why there's so much. I'd love to change my forum skin, but the problem is that I don't have a dependable hosting account. I have another hosting account on Freepgs, but Freepgs goes down sometimes so I wouldn't want my members looking at text links, right? I'll put a little title tag to the left navigation and right.
  2. Yeah, I've been trying to reduce the image sizes (I have too much images in the news) and the tabs only load when the page has finished loading and I haven't figured out a way to bypass that. There's a note on the top left hand corner saying that the nav headers are collapsible. XD Yeah, I've been trying a good program that can indent my code without my doing it manually - I've got about 90 pages to process. The online users list just tells you what users are online, nothing more. I don't want to put out the IPs or anything. I'm pretty sure that tidy coding is number 2 or 3 on bugs for Roots - I got to finish all of those bugs (about 15ish now and get all the incoming done) before the 0.2 version of my site's coding comes out with all the new features.
  3. [a href=\"http://neo-addict.net/\" target=\"_blank\"]http://neo-addict.net/[/a] Please check the (9) layouts and please tell me your opinion of them, and also try out the tabs and collapsible divs. XD If you could, drop by the wiki/portal or some other sections and tell me your opinion of them. XD Also, here's the link to topics that contain the latest bug fixes for my site: [a href=\"http://neo-addict.net/forums/index.php?showforum=132\" target=\"_blank\"]http://neo-addict.net/forums/index.php?showforum=132[/a] Thanks very much!
  4. Well, I'm trying to make this AJAX script keep persistence for a collapse div script, I think I've got the AJAX all done, but I can't seem to figure out what to put in the PHP files. checkcookie.php should check if cookies exists, and if so, outputs the value of the cookie to the AJAX script. hide.php is for the hide cookie show.php is for the show cookie
  5. [code]<script type="text/javascript">     function makeRequest(url) {         var http_request = false;         if (window.XMLHttpRequest) {             http_request = new XMLHttpRequest();         } else if (window.ActiveXObject) {             try {                 http_request = new ActiveXObject("Msxml2.XMLHTTP");             } catch (e) {                 try {                     http_request = new ActiveXObject("Microsoft.XMLHTTP");                 } catch (e) {}             }         }         if (!http_request) {             alert('Your browser does not support AJAX or XMLHttpRequest!');             return false;         }         http_request.open('GET', url, true);         if (url == "checkcookie.php") {             http_request.onreadystatechange = parse;         }         http_request.send(null);     }     function parse() {         if (http_request.readyState == 4) {             if (http_request.status == 200) {                 var css = http_request.responseText;                 document.getElementById("topsites").style.display = css;             }             else{                 alert('There was a problem with the request.');             }         }     }     open('checkcookie.php');     function omgmagic() {         if(document.getElementById("topsites").style.display == 'none'){            makeRequest('show.php');            document.getElementById("topsites").style.display = '';         }         else{            makeRequest('hide.php');            document.getElementById("topsites").style.display = 'none';         }     } </script> <div style="cursor: pointer;" onclick="omgmagic()">Expand/Collapse Topsites Images[/code] That's my current code so far - I think I've got all the AJAX right, but I don't know what to put in the PHP files except setcookie, perhaps? Thanks.
  6. Thanks, that worked. XD Now to ask on the PHP Help forums.
  7. [a href=\"http://pastebin.com/679905\" target=\"_blank\"]http://pastebin.com/679905[/a] Can't get the script to write to the file mentioned in $doa (yes, I replaced the paths with /path) and it works sometimes and it sometimes doesn't. Could anyone point some bugs out and possibly some solutions? Thanks. Also, if someone could tell me how to append to the top of a file, that'd be great. [b]EDIT: Sorry I posted here, mods. :([/b]
  8. Thanks. Now I need to work on what to put in the PHP files - don't even have a clue to what to put in checkcookie.php. Any suggestions? (I know this is the JS forum - but I can't post in the PHP forums for some reason..) Also, do you know how to make text change in a div using Javascript when someone clicks on it without reloading the page? (AJAX maybe?)
  9. [code]<script type="text/javascript">     function makeRequest(url) {         var http_request = false;         if (window.XMLHttpRequest) {             http_request = new XMLHttpRequest();         } else if (window.ActiveXObject) {             try {                 http_request = new ActiveXObject("Msxml2.XMLHTTP");             } catch (e) {                 try {                     http_request = new ActiveXObject("Microsoft.XMLHTTP");                 } catch (e) {}             }         }         if (!http_request) {             alert('Your browser does not support AJAX or XMLHttpRequest!');             return false;         }         http_request.open('GET', url, true);         if (url == "checkcookie.php") {             http_request.onreadystatechange = parse;         }         http_request.send(null);     }     function parse() {         if (http_request.readyState == 4) {             if (http_request.status == 200) {                 var css = http_request.responseText;                 document.getElementById("topsites").style.display = css;             }             else{                 alert('There was a problem with the request.');             }     }     open('checkcookie.php');     function omgmagic() {         if(document.getElementById("topsites").style.display == 'none'){            makeRequest('show.php');            document.getElementById("topsites").style.display = '';         }         else{            makeRequest('hide.php');            document.getElementById("topsites").style.display = 'none';         }     } </script> <div style="cursor: pointer;" onclick="omgmagic()">Expand/Collapse Topsites Images</div>[/code] That's my current code so far - I think I've got all the AJAX right, but I don't know what to put in the PHP files except setcookie, perhaps? Thanks.
×
×
  • 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.