Jump to content

Who8MyFish

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Who8MyFish's Achievements

Member

Member (2/5)

0

Reputation

  1. The problem was in the html. the ' in "you'll" was somehow being switched to a doublequote and so the elemnt looked a little like this. <a href='#' title='Dream as if you'll live forever, Live as if you"ll die today'>Link</a> A simple htmlspecialchars($myString, ENT_QUOTES); took care of that reallll quick. Thanks for the help though, spot on!
  2. one shotted my problem like a total baws! Thanks man I've literally been at this one bug for 3 hours non stop.
  3. So i'm trying to make a play/pause toggle button for a slideshow gallery I'm making right. When turned on the slideshow should perfoerm the function goForward() every 5000ms. I can successfully start the interval but when trying to clear it all it seems to do is start the interval again and create a new set of intervals so my images start scrolling twice as fast. LINKSAUS: http://www.lojiki.com/slider/ $("#play-pause-button").click(function(){ if(timer == null){ var timer = setInterval(goForward, 5000); $("#play-pause-button").html("<img src='http://www.rogercpareview.com/media/images/layout/play-iconB2_small.png'>").load(function(){ $("#play-pause-button").val("on"); }); return false; }; if(timer != null){ clearInterval(goForward); var timer = null; $("#play-pause-button").html("<img src='http://www.spalook.com/resources/assets/product/player_pause_button.jpg'>").load(function(){ $("#play-pause-button").val("off"); }); }; });
  4. So I'm using simplexml_load_file($url) to load up a client's XML file so I can use it with a jQuery slide show right. My problem is that some of the strings within the xml files are often times sentences and when I echo, for example... echo $xml->images->categories->category[$gallery]->images->image[0]->description[0] ; I should see Dream as if you'll live forever, Live as if you'll die today but all I'm getting is Dream as if you It appears as though php is getting confused when it sees those little single quotes. Anyone?
  5. So heres le deal. I'm building a slide show and the images I'm working with are all different sizes and will often change sizes as the owner of the slide show populates the gallery with XML. The images scale with some pretty basic CSS however I'm left with the task of vertically centering this image after I load it. The fact that vertical centering STILL requires javascript is crazyness in my mind... I feel like it should be a basic part of CSS but wadyagonnadooooooooo? Here is a pastebin to my code: http://pastebin.com/bFHV7ubd Here is a link to a live version of the slider: http://www.lojiki.com/slider/
  6. Been away for a sec, did you still need help with this?
  7. What separates pros from amateurs is that the former group often needs to reassure themselves and that they are not the latter group by being unnecessarily condescending to the former group. Anyone else sick of admins and their over the top hubris? You passed on a perfect opportunity to help someone learn something so you could lay down that half assed troll. Douche bag.
  8. So I use a homebrew media player for my .mp3 files (iTunes blows OMHO) and the only problem I have yet to tackle is that this upload field I use to move songs onto the server eats up ALLL my upload bandwidth and prettymuch cripples whatever network I happen to be on until I'm finished uploaing my stuffs. Anyone know of a technique to throttle upload speed?
  9. Hey, just looking for a little advise here. I have a couple questions and PHP freaks is packed full of smart people so I thought I'd head here after trying Google. at what file size you think mod_gzip/mod_deflate are useful and at what file size do you see a sort of diminishing return in load speeds? I stream .mp3 files with HTTP from this server, does mod_deflate or mod_gzip compress ALL traffic or just text files? .html .php .js etc. any other little pro tips I should know? Thanks!
  10. Put everything in here and post us the link after you update (aka save) http://jsfiddle.net/ Your css appears to be legit but the HTML surrounding the css is super important.
  11. ohhhhh. I assumed the OP was asking about the XY of the mouse. Moving the cursor is super possible. http://www.htmlgoodies.com/beyond/javascript/article.php/3471131/Jump-Focus-with-Form-Elements.htm
  12. So just to clear things up/ You want the hidden <input>'s value to reflect the value of your text <input> am I right? If so check this out, its a simple jQuery that literally changes the html of your page when click the submit button. http://jsfiddle.net/RqsjN/
  13. Pretty sure you can do this with visual basic but not JS. I feel like if this were possible we'd all have Live Jasmin / Google ad sense walpapers on our desktop hahaha.
  14. Thank you for your help, this worked perfectly. I'm wondering why the syntax is different from your typical JavaScript if(this){do this}? http://www.w3schools.com/js/js_if_else.asp
×
×
  • 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.