what the heck?! Please help

Discussion in 'JavaScript' started by cgo85, Oct 15, 2008.

  1. #1
    I'm trying to get a website preview frame to work for a search engine results script ( see here)

    2 issues:

    1. Having a problem with frame size on initial click on "Espie". It works fine on "Expandir"

    2. Actually displaying website preview in frame

    Here is a snippet of the code that I believe needs altering:

    $count = 1;
    		foreach ($urls['urls'] as $key => $url) {
    			$rownum++;
    			echo "<TR";
    			if ($rownum % 2 == 1) echo ' BGCOLOR=' . $color_even_results;
    			echo "><TH align=\"right\" width=\"20\">&nbsp;</TH><td><a class=\"previewlink\" href=\"$url\"><img  src=\"http://open.thumbshots.org/image.aspx?url=$url\" border=\"1\" /></a>  </td><TD><span class=\"sitedesc\"><a class='res' href='$url'>" . $urls['titles'][$key] . "<a href=\"$url\" target=\"_blank\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('img 1','','nw_red.gif',1)\"><img name=\"img 1\" border=\"0\" src=\"nw_blue.gif\" alt=\"Click\" height=\"11\" width=\"11\"></a><br>" . $urls['snippet'][$key] . "</span><br /><img id=\"qlook_bti$count\" src=\"open.gif\" width=11 height=11 align=\"absmiddle\"><a class=\"espie\" id=\"qlook_btn$count\" href=\"javascript:qlook($count)\">Espie!</a>&nbsp;<span id=\"qlook_spn$count\" style=\"display: none;\"><img id=\"qlook_mmi$count\" src=\"max.gif\" width=11 height=11 align=\"absmiddle\"><a class=\"expandir\" id=\"qlook_mmb$count\" href=\"javascript:qlookmm($count)\">Expandir</a>&nbsp;<span id=\"qlook_mms$count\"></span><img src=\"home.gif\" width=11 height=12 align=\"absmiddle\"><a class=\"qlook\" id=\"qlook_ghb$count\" href=\"javascript:qlookgh($count)\">Home</a>&nbsp;&nbsp;</span>
    
    <iframe id=\"qlook_fra$count\" src=\"\" src1=\"$url\" loaded=\"0\" width=\"99%\" height=\"300\" scrolling=\"auto\" style=\"display: none; margin-top: 3px;\"></iframe></TD></TR>";
    $count++;
    		}
    PHP:

    Here is a link to the appropriate js script

    Any help is SO MUCH appreciated! Definite rep boost if you can help!
     
    cgo85, Oct 15, 2008 IP
  2. cgo85

    cgo85 Peon

    Messages:
    380
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i figured it out
     
    cgo85, Oct 15, 2008 IP