Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 2283 points

Shawna C

Favorite Answers25%
Answers16
  • How Can I Stop Facebook Hiding my own Posts on My Newsfeed?

    Today my newsfeed decided to stop showing me my own stuff. Kind of annoying. Can't find any new answers on how to fix this on the new Facebook. Old answers start with "scroll to the bottom of the page..." which is now kind of like saying "go stand in the corner of a round room" because you can't get to the end of the page as it automatically fills with older content as you scroll... help!

    1 AnswerFacebook8 years ago
  • PHP Glob, Sort & include... help!?

    I am not a coder but I got this to work:

    <?php

    $files = glob("stories/*.html");

    natsort($files);

    $highest = array_pop($files);

    $second = array_pop($files);

    $third = array_pop($files);

    {

    include $highest;

    include $second;

    include $third;

    }

    ?>

    Now all I need to do is make it work in reverse... i.e., include every file in the directory EXCEPT the first three and have them run in descending order ending with 001.html. PLEASE help!

    1 AnswerProgramming & Design10 years ago
  • Help! Javascript! Random WITHOUT repeats?

    I have this working nicely but I want the images to randomly load from a series of 6 without repeating - like the same 3 or 4 just keep on coming. Help would be greatly appreciated!

    function slideSwitch() {

    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup

    var $next = $active.next().length ? $active.next()

    : $('#slideshow IMG:first');

    var $sibs = $active.siblings();

    var rndNum = Math.floor(Math.random() * $sibs.length );

    var $next = $( $sibs[ rndNum ] );

    $active.addClass('last-active');

    $next.css({opacity: 0.0})

    .addClass('active')

    .animate({opacity: 1.0}, 2000, function() {

    $active.removeClass('active last-active');

    });

    }

    $(function() {

    setInterval( "slideSwitch()", 5000 );

    });

    </script>

    2 AnswersProgramming & Design1 decade ago
  • Can You Make a Javascript Slideshow with only the first image being random?

    I'm using this fine code to make a fade-in, fade-out slideshow. I'd love to be able to have the first image be a random selection then have the rest of the slideshow loop in 1-6 order. Would this be possible without having a phone book full of code???

    <!--SLIDESHOW SCRIPT -->

    <script type="text/javascript">

    //<![CDATA[

    var mygallery=new fadeSlideShow({

    wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow

    dimensions: [900, 350], //width/height of gallery in pixels. Should reflect dimensions of largest image

    imagearray: [

    ["images/1.jpg", "", "", "Optional photo caption."],

    ["images/2.jpg", "", "", "Optional photo caption."],

    ["images/3.jpg", "", "", "Optional photo caption."],

    ["images/4.jpg", "", "", "Optional photo caption."],

    ["images/5.jpg", "", "", "Optional photo caption."],

    ["images/6.jpg", "", "", "Optional photo caption."]

    ],

    displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},

    persist: true, //remember last viewed slide and recall within same session?

    fadeduration: 1000, //transition duration (milliseconds)

    descreveal: "ondemand",

    togglerid: ""

    })

    //]]>

    </script><!--SLIDESHOW SCRIPT -->

    1 AnswerProgramming & Design1 decade ago
  • Can you stop FireFox highlighting links with those nasty blue lines?

    I'm doing css image rollover links that have text links indented way off the page so they don't show. But Firefox always wants to highlight text links so I end up with weird blue rectangles going off screen when I roll over the images... can you code text links with 'highlight='false" or some such tag???

    3 AnswersOther - Internet1 decade ago
  • How do you get a wood stain stain out of carpet?

    When we cleaned our carpet, we put a dark-wood rocking chair back on it before it was properly dry. Now we have a nasty-looking yellow stain where the damp carpet 'reacted' with the stained wood. I've tried alcohol, acetone, detergent, water, etc., but nothing shifts it. Anyone got ideas? Thanks!

    1 AnswerCleaning & Laundry1 decade ago
  • Is the conservative bible project a satirical hoax or is it for real?

    Can't seem to find an answer to this one.

    8 AnswersReligion & Spirituality1 decade ago
  • Can anyone correct this PHP?

    This code lets the user upload a jpeg to a directory called "gallery_001_images". Works fine except I want it to change the name of the jpeg (whatever it's original file name is) to "1.jpg" and replace "1.jpg" if there's already one there. I've been trying all day to make this work to no avail. Please could somebody correct this??? (Please don't tell me what I need to do, please show me with the code in place as I'm really stoopid with PHP!) Oh, and I know the "rename line is wrong... it was just a wild guess.

    <?php

    $target_path = "uploads/";

    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

    $rename("name", "1.jpg");

    $target_path = "gallery_001_images/";

    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {

    echo "The file ". basename( $_FILES['uploadedfile']['name']).

    " has been uploaded";

    } else{

    echo "There was an error uploading the file, please try again!";

    }

    ?>

    2 AnswersProgramming & Design1 decade ago
  • How can I make this PHP work?

    OK, I have a page with a text field. You type into the text field. It saves as a txt file. Then another page includes the txt file as content. It works great apart from it ignores line returns typed in by the user.

    I find code VERY hard to follow so it would be great if someone could just tell me exactly where and how to add code to make PHP save and read line breaks. I've asked questions before and got some very helpful answers. Only problem is that I'm clueless how to implement them! Please show me exactly where and how to put in the additional code... please!!! Being able to convert line returns to <br> tags on save so they appear in the txt file would be great. Here's the code I'm using:

    <?php

    $saving = $_REQUEST['saving'];

    if ($saving == 1) {

    $data = $_POST['data'];

    $file = "text_files/a1txt.txt";

    echo "\r\n";

    $fp = fopen($file, "w") or die("Couldn't open $file for writing!");

    fwrite($fp, $data) or die("Couldn't write values to file!");

    fclose($fp);

    echo "Saved to $file successfully!";

    }

    ?>

    </p>

    <form name="form1" method="post" action="a1txt.php?saving=1">

    <textarea name="data" cols="70" rows="10">

    <?php

    $file = "text_files/a1txt.txt";

    if (!empty($file)) {

    $file = file_get_contents("$file");

    echo $file;

    }

    ?>

    </textarea>

    <br>

    <input type="submit" value="Save">

    </form>

    1 AnswerProgramming & Design1 decade ago
  • Make PHP recognize line returns?

    I'm trying to build a PHP/CMS thingy and it's all going great. But I just can't figure out how to make the simple line returns the user types into the text field show up once the text has been saved and included in the actual page. Is this something that I do on the "PHP Include" end or on the "save" end in the doc with the form in it???

    Here's the code if anyone feels very generous and could add the right bit in the right place to make this happen! Thanks.

    <?php

    $saving = $_REQUEST['saving'];

    if ($saving == 1) {

    $data = $_POST['data'];

    $file = "text_files/a1txt.txt";

    $fp = fopen($file, "w") or die("Couldn't open $file for writing!");

    fwrite($fp, $data) or die("Couldn't write values to file!");

    fclose($fp);

    echo "Saved to $file successfully!";

    }

    ?>

    </p>

    <form name="form1" method="post" action="a1txt.php?saving=1">

    <textarea name="data" cols="70" rows="10">

    <?php

    $file = "text_files/a1txt.txt";

    if (!empty($file)) {

    $file = file_get_contents("$file");

    echo $file;

    }

    ?>

    </textarea>

    <br>

    <input type="submit" value="Save">

    </form>

    3 AnswersProgramming & Design1 decade ago
  • PHP to text file - two forms on one page?

    This is embarrassingly easy (probably) but... I've set up a PHP page with a text area that saves to a txt file. The text file is then included on a live page. Then I have another PHP page with a text area that saves to another txt file for inclusion on the same live page. All works fine, but how can I put both text fields on one php page instead so both txt files can be edited without having to open another page? Like I said, I'm sure it's easy, but all my attempts have failed. Thanks! (Oh, and pretend like you're explaining to a five year old. I'm not a newbie, but I find code really hard to grasp!)

    3 AnswersProgramming & Design1 decade ago
  • Does a battery exist that's big enough to power an average home?

    This might seem like a dumb question, but I was wondering if a rechargeable battery exists that could store enough power to run an average home for one week or more? And, if so, is it commercially available?

    4 AnswersEngineering1 decade ago
  • How do you use multiple "@fontface" fonts?

    I've wasted many hours on this and whatever I try, I cannot use more than one font using the "@fontface" css thing (Dreamweaver). Even if I copy and paste Adobe's own code, it doesn't work. Has anyone ever got this bunch of cr*p to work???? I know there are tutorials online, but they don't work either. (Using Safari or FF)

    1 AnswerPreferences and Settings1 decade ago
  • How the f*** do I make a simple 3 column layout using CSS?

    Simple in HTML tables: 3 cells side by side in a 100% width table, left cell fills available space on the left, center cell fixed width of 900px centered, right cell fills available space on the right. This takes approx. 2 minutes using HTML with applied CSS styles, but I've burned up many, many hours trying to accomplish this using pure CSS.

    I'm frustrated because I'm a designer and don't profess to be a code geek, but every code geek I know says "oh you should be using pure CSS..." and I'm starting to feel like a dinosaur using tables! I can't even find a simple template on the Web that doesn't disintegrate as soon as I start editing it.

    3 AnswersProgramming & Design1 decade ago
  • What is that music which seems to be on everything..?

    Weird question I know... but does anyone know the title/artist of that piece of music that seems to have been on every other ad and TV trailer for the past decade? Just caught it on a trailer for that Mad Money movie on TV. I'll describe as best I can... sounds like an uptempo late sixties jazz/dance/movie theme kind of thing (like the kind of thing that got popular in clubs when everyone started getting into Easy Listening/Lounge music)... uses a lot of brass stabs and has what sounds like a triangle roll/break in it. It has a great vamping bassline and almost a funky drum sound... ?????

    1 AnswerOther - Music1 decade ago
  • Are there any free video hosting sites that DON'T stick a watermark logo on your embedded videos?

    OK I'm too lazy to do the research(!) But maybe someone knows already whether there are any sites out there that can host video, play back at decent quality and not brand your movies with a big logo stamp? Want to use it for a professional (but too cheap to pay) online show reel and a big YouTube logo in the corner would look very tacky...

    3 AnswersProgramming & Design1 decade ago
  • Program CD no longer shows up on my Mac?

    I've been using Reason for several years. The program makes you put in a program CD every time you use it. Now that disk keeps disappearing periodically and many times refuses to mount when I put it back in. My Mac gives me an error message about a device being improperly disconnected when the CD spontaneously unmounts. I don't have trouble with any other CDs apart from this one.

    1 AnswerSoftware1 decade ago
  • How can I make a giant swf sit in the middle of a page?

    I want to position a 2000px square swf in a HTML page so it's always centered horizontally and vertically in the browser at whatever size the window is but with the overflow hidden (no scrollbars). I thought I could do it by embedding in a layer, but no luck so far as I can't figure out how to make a layer align center. The reason I'm doing it is just to fill the window however big it is but still have the important stuff showing in the middle even when it's small. Help!

    3 AnswersProgramming & Design1 decade ago
  • Why do my Web designs never work on PC?

    I design Web sites using a Mac and, without exaggeration, the bulk of my time is spent "troubleshooting" finished sites to look right in Explorer on a PC. They always look fine on my Mac, then I fire up the PC to cross-platform test and they are invariably full of weird white gaps and misaligned elements that take hours of hit and miss tweaking to correct - even though, as I say, Macs seem perfectly capable of rendering them with no trouble at all. Hate to say PCs are s*** (which I always end up yelling during this frustrating process!) but I really can't see any other explanation. If Macs can interpret HTML smoothly, and PCs need so much extra messing around, what else can I say??? Are there any geeks or code monkeys out there who share my frustration or can give me some helpful hints (short of buying one of these diabolical contraptions)?

    4 AnswersProgramming & Design1 decade ago