Jump to content

php frame menu needs to be thinner help???


Recommended Posts

Hi I'm trying to get my php menu to be thinner in all browsers with an image background behind the links but this is the best I could do so far without having that IE window scroller show up in the frame. http://www.plentyoftorrents.com/result.php I'd like it to be just wide enough to have the menu bar from the front page and the current links that are on the menu.php which is at the top of the results page.

 

The menu shows up when you make a search on the main site and you click the site links in the menu to try your search again on another site without having to type it. http://www.plentyoftorrents.com

 

Any help would be appreciated.

 

The results page contains the frame information so heres the source for that.

<?php




















// grab the search query and request site from the url


























$q = $_POST["q"];




















$site = $_POST["site"];



































// here we use a switch statement to define our url























switch ($site) {


























case "Mininova":



































    $url = "http://www.mininova.org/search/?search=". $q;
































    break;





























case "Btjunkie":























    $url = "http://btjunkie.org/search?q=". $q;




















    break;

















case "Isohunt":


























    $url = "http://isohunt.com/torrents/?ihq=". $q;



































    break;

















case "Torrentspy":






































    $url = "http://www.torrentspy.com/search?query=". $q ."&submit.x=0&submit.y=0"; 



































    break;





case "btscene":






































    $url = "http://www.btscene.com/search.php?term=". $q ."&cat=0"; 



































    break;





case "Sumotorrents":






































    $url = "http://www.sumotorrent.com/searchResult.php?search=". $q; 



































    break;





case "Torrentportal":






































    $url = "http://www.torrentportal.com/torrents-search.php?search=". $q; 



































    break;








case "Torrentvalley":






































    $url = "http://www.torrentvalley.com/search.php?search=". $q . "&x=0&y=0&act=1&cat=0&trss=1";



































    break;





	case "Fenopy":






































    $url = "http://fenopy.com/?keyword=". $q . "&select=0&order=0&sort=0&minsize=&maxsize=&search.x=0&search.y=0&search=Search";



































    break;





			case "Fulldls":






































    $url = "http://www.fulldls.com/search-all-torrents/?qa=". $q;



































    break;





					case "EZ-TV":






































    $url = "http://www.eztv.it/index.php?search=".$q;



































    break;








							case "Bittorrent Monster":






































    $url = "http://www.btmon.com/torrent/". $q;



































    break;





								case "Torrentz":






































    $url = "http://www.torrentz.com/search?q=". $q. "&x=0&y=0";



































    break;	





										case "The Pirate Bay":






































    $url = "http://thepiratebay.org/search/". $q. "/0/3/";



















    break;


}

















// finally create the code for the actual frames. This is simple HTML with the search query and site put into the menubar's url so we can change it later if wanted.

















?>




















<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>


<title>Click Above Links To Try Search Again</title>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />




















<frameset rows="10%, 90%" frameborder="0"  noresize="noresize" scrolling="no" marginwidth="0" marginheight="0">























  <frame src ="menu.php?site=<?php echo $site; ?>&q=<?php echo $q; ?>" />





      




















  <frame src ="<?php echo $url; ?>" name="result"/> 




















</frameset>








</head>


<body>





</body>














</html>


Link to comment
https://forums.phpfreaks.com/topic/78931-php-frame-menu-needs-to-be-thinner-help/
Share on other sites

It wont let me edit it. :(\any way heres the html part of it.

  break;


}



// finally create the code for the actual frames. This is simple HTML with the search query and site put into the menubar's url so we can change it later if wanted.



?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<head>


<title>Click Above Links To Try Search Again</title>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />




<frameset rows="10%, 90%" frameborder="0"  noresize="noresize" scrolling="no" marginwidth="0" marginheight="0">




  <frame src ="menu.php?site=<?php echo $site; ?>&q=<?php echo $q; ?>" />






  <frame src ="<?php echo $url; ?>" name="result"/> 








</frameset>




</head>


<body>





</body>






</html>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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