View Single Post
  #5  
Old 08-07-2007, 08:50 AM
 
Dawn Howard Dawn Howard is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 229
 

Default Re: Linking directly to a search result

I'm trying this as well

Code:
http://www.duffystric.com/search.php?mode=search&substring=palm+island&including=phrase&by_title=on&by_shortdescr=on&by_full descr=on&category_main=on&category_extra=on

the URL by its self works fine, but I'm using it as part of a java script in the header:

Code:
{literal} <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var mfBanners = [ ['http://www.duffystric.com/search.php?mode=search&substring=palm+island&including=phrase&by_title=on&by_shortdescr=on&by_full descr=on&category_main=on&category_extra=on', 'http://www.duffystric.com/1palm.jpg'], ['http://www.duffystric.com/home.php?cat=85', 'http://www.duffystric.com/1new.jpg'] ]; var mfIe = false; if( document.all) { mfIe = true; } var mfBannerIndex = 0; function mfBannerChange() { var htmlString = '<a href="'+mfBanners[mfBannerIndex][0]+'"> <img border="0" src="'+mfBanners[mfBannerIndex][1]+'"></a>'; if( mfIe) { document.all.banner.innerHTML = htmlString; } else { document.layers["banner"].document.open(); document.layers["banner"].document.write( htmlString); document.layers["banner"].document.close(); } if(mfBannerIndex < mfBanners.length - 1) mfBannerIndex++; else mfBannerIndex = 0; } setInterval("mfBannerChange()", 5000); // End --> </script> {/literal}


as part of the java script, the search pulls up all kinda of stuff with out the words: palm island.

help?
__________________
Dawn
X-Cart Business 5.3.6.3
Mods:
Qty input - Custom Mod
Part numbers near title - Custom Mod
Membership approval before ordering - Custom Mod
Order Forms - Custom Mod
Freight on Board - Custom Mod
Catalog Order Form
Call For Price
Template: Crisp White skin
Running on Windows
Reply With Quote