Jump to content


  • Posts

  • Joined

  • Last visited


Posts posted by dreamwest

  1. Im building a custom lightbox which overlays he entire screen. Is it important to use both visibility:hidden; and display:none; ??


    Im currently only using display:none; and seems to work in all browsers even in IE6 with all its "unexpected features"


    Heres is what ive done:

    .wiz_slide{ background:#000; position:relative;height:100%;width:100%;left:0px;top:0px;display:none;position:absolute;z-index:999;position:fixed;color:#333;overflow:auto; }
    .wiz_slide.html{ height:100%;overflow:auto; }
    .wiz_slide_lg{ width:900px;position:relative;background:#000;overflow:auto; }
    function slider(id){
    document.getElementById('wiz_slide').style.display = "block";
    document.getElementById('wiz_slide_img').innerHTML = "<img src='/tmb/full/pic.jpg' width='894px' height='520px' />";
    <span  id='slide' style='cursor:pointer;' onclick='slider("wiz_slide"); '>Click to enlarge</span>
    <div id='wiz_slide' align='center'  class='wiz_slide'>
    <div id="wiz_slide_lg" align='center' class='wiz_slide_lg'>
    <span id="wiz_slide_lg_img"></span>


  2. Im trying to position a box in the center of the screen like lightbox does


    <div style="position:absolute;top:100px;left:140px;width:450px;height:400px;z-index:999;position:fixed;">
    This is in the center of the screen</div>



  3. What does something like this mean:


    font-family:"lucida grande",tahoma,verdana,arial,sans-serif;


    Im assuming if the browser doent support lucida grande itll use one of the following styles.



  4. # instruct browser to download multimedia files

    AddType application/octet-stream .avi

    AddType application/octet-stream .mpg

    AddType application/octet-stream .wmv

    AddType application/octet-stream .mp4

    AddType application/octet-stream .mov

    AddType application/octet-stream .3gp

    AddType application/octet-stream .zip

  5. Im trying to get an innerhtml value to increment by 1


    function up(){
    document.getElementById("cnt").innerHTML = document.getElementById('cnt') + 1;
    <span id='cnt'>0</span>
    <span style='cursor:pointer;' onclick='up(); '>Go up</span>


  6. I got a toshiba satellite of ebay for $499, it has 6GB ram , Intel celeron 2.4Ghz processor and 250GB drive - a shite load better than my old desktop


    ..I sleep with my laptop, it sits in a little nook on the corner of my bed, when i wake up i just open it up without getting up - its a great way to start the day

  7. Why does krsort return the array as "1"?


    $m = array('34' => 1122, '6' => 1944, '9' => 1710);
    print_r($m); //outputs: Array ( [34] => 1122 [6] => 1944 [9] => 1710 )
    print_r(krsort($m)); //outputs: 1


    What i need is the output to be


    Array ( [6] => 1944 [9] => 1710 [34] => 1122)

  8. as far as i know mysql cant search for corpus pairs, so is used only to retrieve pointers in the inverted doc.


    so a paired set like {21,4|45,5|78,9}  means word "funny" appears in doc 4 at position 21 etc..


    Ive read you can also use skipping to make the retrieval faster


    ..but for now im experimenting all methods

  9. Yeah, but that's evil data storage.


    Im trying to create a Sparse index where pairs of numbers point to locations in a document. How would you store this data?

  10. Try this and see if you get an error. Also update dosnt have an WHERE clause to update, itll update the entire table



    if(!$con = mysql_connect("localhost","dbname","dbpassword")){

    die('Could not connect: ' . mysql_error());


    echo 'Connected successfully';



    @mysql_select_db("my_db", $con);


    mysql_query("UPDATE `msm_content` SET `created` = '2011-01-02 00:00:00', `modified` = '2011-01-01 00:00:00' ")or die(mysql_error());

    echo 'Query Updated successfully';




  • 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.