rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mr. Me

Pages: 1 2 3
1
HTML & templates / Find In Page Script
« on: November 04, 2007, 09:17:01 AM »
Hey Guys I Found FIND IN PAGE SCRIPT

Code: [Select]
<script>
<!-- Hide from old browsers

/******************************************
* Find In Page Script -- Submitted/revised by Alan Koontz (alankoontz@REMOVETHISyahoo.com)
* Visit Dynamic Drive (http://www.dynamicdrive.com/) for full source code
* This notice must stay intact for use
******************************************/

//  revised by Alan Koontz -- May 2003

var TRange = null;
var dupeRange = null;
var TestRange = null;
var win = null;


//  SELECTED BROWSER SNIFFER COMPONENTS DOCUMENTED AT
//  http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html

var nom = navigator.appName.toLowerCase();
var agt = navigator.userAgent.toLowerCase();
var is_major   = parseInt(navigator.appVersion);
var is_minor   = parseFloat(navigator.appVersion);
var is_ie      = (agt.indexOf("msie") != -1);
var is_ie4up   = (is_ie && (is_major >= 4));
var is_not_moz = (agt.indexOf('netscape')!=-1)
var is_nav     = (nom.indexOf('netscape')!=-1);
var is_nav4    = (is_nav && (is_major == 4));
var is_mac     = (agt.indexOf("mac")!=-1);
var is_gecko   = (agt.indexOf('gecko') != -1);
var is_opera   = (agt.indexOf("opera") != -1);


//  GECKO REVISION

var is_rev=0
if (is_gecko) {
temp = agt.split("rv:")
is_rev = parseFloat(temp[1])
}


//  USE THE FOLLOWING VARIABLE TO CONFIGURE FRAMES TO SEARCH
//  (SELF OR CHILD FRAME)

//  If you want to search another frame, change from "self" to
//  the name of the target frame:
//  e.g., var frametosearch = 'main'

//var frametosearch = 'main';
var frametosearch = self;


function search(whichform, whichframe) {

//  TEST FOR IE5 FOR MAC (NO DOCUMENTATION)

if (is_ie4up && is_mac) return;

//  TEST FOR NAV 6 (NO DOCUMENTATION)

if (is_gecko && (is_rev <1)) return;

//  TEST FOR Opera (NO DOCUMENTATION)

if (is_opera) return;

//  INITIALIZATIONS FOR FIND-IN-PAGE SEARCHES

if(whichform.findthis.value!=null && whichform.findthis.value!='') {

       str = whichform.findthis.value;
       win = whichframe;
       var frameval=false;
       if(win!=self)
{

       frameval=true;  // this will enable Nav7 to search child frame
       win = parent.frames[whichframe];

}

   
}

else return;  //  i.e., no search string was entered

var strFound;

//  NAVIGATOR 4 SPECIFIC CODE

if(is_nav4 && (is_minor < 5)) {
   
  strFound=win.find(str); // case insensitive, forward search by default

//  There are 3 arguments available:
//  searchString: type string and it's the item to be searched
//  caseSensitive: boolean -- is search case sensitive?
//  backwards: boolean --should we also search backwards?
//  strFound=win.find(str, false, false) is the explicit
//  version of the above
//  The Mac version of Nav4 has wrapAround, but
//  cannot be specified in JS

 
        }

//  NAVIGATOR 7 and Mozilla rev 1+ SPECIFIC CODE (WILL NOT WORK WITH NAVIGATOR 6)

if (is_gecko && (is_rev >= 1)) {
   
    if(frameval!=false) win.focus(); // force search in specified child frame
    strFound=win.find(str, false, false, true, false, frameval, false);

//  The following statement enables reversion of focus
//  back to the search box after each search event
//  allowing the user to press the ENTER key instead
//  of clicking the search button to continue search.
//  Note: tends to be buggy in Mozilla as of 1.3.1
//  (see www.mozilla.org) so is excluded from users
//  of that browser.

    if (is_not_moz)  whichform.findthis.focus();

//  There are 7 arguments available:
//  searchString: type string and it's the item to be searched
//  caseSensitive: boolean -- is search case sensitive?
//  backwards: boolean --should we also search backwards?
//  wrapAround: boolean -- should we wrap the search?
//  wholeWord: boolean: should we search only for whole words
//  searchInFrames: boolean -- should we search in frames?
//  showDialog: boolean -- should we show the Find Dialog?


}

 if (is_ie4up) {

  // EXPLORER-SPECIFIC CODE revised 5/21/03

  if (TRange!=null) {
 
   TestRange=win.document.body.createTextRange();
 
 

   if (dupeRange.inRange(TestRange)) {

   TRange.collapse(false);
   strFound=TRange.findText(str);
    if (strFound) {
        //the following line added by Mike and Susan Keenan, 7 June 2003
        win.document.body.scrollTop = win.document.body.scrollTop + TRange.offsetTop;
        TRange.select();
        }


   }
   
   else {

     TRange=win.document.body.createTextRange();
     TRange.collapse(false);
     strFound=TRange.findText(str);
     if (strFound) {
        //the following line added by Mike and Susan Keenan, 7 June 2003
        win.document.body.scrollTop = TRange.offsetTop;
        TRange.select();
        }



   }
  }
 
   if (TRange==null || strFound==0) {
   TRange=win.document.body.createTextRange();
   dupeRange = TRange.duplicate();
   strFound=TRange.findText(str);
    if (strFound) {
        //the following line added by Mike and Susan Keenan, 7 June 2003
        win.document.body.scrollTop = TRange.offsetTop;
        TRange.select();
        }

   
   }

 }

  if (!strFound) alert ("String '"+str+"' not found!") // string not found

       
}
// -->
</script>

<!--  EXAMPLE FORM OF FIND-IN-PAGE SEARCH USING SUBMIT (ALLOWING 'ENTER/RETURN' KEY PRESS EVENT) -->
<form name="form1" onSubmit="search(document.form1, frametosearch); return false"><input type="text" name="findthis" size="15" title="Press 'ALT s' after clicking submit to repeatedly search page"> <input type="submit" value="Find in Page" ACCESSKEY="s"></form>

Simply add the following code to your web page...

1.Works in IE4+, NS4, Mozilla/NS7+ (not NS6), and degrades well with the rest.
2.Easily configurable to search either current page or a particular frame.
3.In IE4+, page automatically scrolls down or up if needed to where the located text is.
4.Easy repetitive search of page, by allowing a user-designated hot key to activate submit button (via ACCESSKEY attribute of HTML 4).

Its Very Easy Way To Find Any Option In Page..... THANKS

2
RAWR-Designs / Re: File Count & Space Counting
« on: November 03, 2007, 05:21:36 PM »
Waoooooooooo .. niceeee buddy

3
HTML & templates / Re: Template with search
« on: November 03, 2007, 05:16:36 PM »

4
RAWR-Designs / Re: ToG Homepage @ www.rawr-designs.com ONLINE
« on: November 03, 2007, 05:13:47 PM »
Great Job Dude !!

5
HFS ~ HTTP File Server / Re: Search System with HFS
« on: November 03, 2007, 05:02:55 PM »
More Easy Way To Create Search Engine..

http://www.freefind.com/ open this link .. and create ka simple serach engine for ur website..

6
HFS ~ HTTP File Server / Re: Flash Search
« on: November 03, 2007, 04:54:26 PM »
good job .. foggy  grt work  ;)

7
HFS ~ HTTP File Server / Re: things to come: ?sort=e ?rev
« on: November 03, 2007, 04:53:21 PM »
now its ok ?? CORE 2 EXTREME pic ?

8
RAWR-Designs / Re: Terayon v1.3.0.5 - BETA
« on: November 03, 2007, 02:25:49 PM »
Hahahaha lol ya i am .... any problem  :P

9
HFS ~ HTTP File Server / Re: things to come: ?sort=e ?rev
« on: November 02, 2007, 09:16:52 PM »
well ELEVENNNN i am post only imporant words becouse i am not form USA , ITLAY , CANADA and others i am from PAKISTAN and i am muslim .. ENGLISH and itlaiyan its not my LANGUAGE.. but i'well try to post in in english... if i am from USA so i am granty and challange u i am the best poster of REJETTO... but my language is urdu. not english.... thats why i am not post fully.... and my POSITION is REGULAR POSTER if me from USA CANANDA soo i granty u my postion is .. Tireless poster... but my bad luck..... and ur good luck.... so keep posts....

10
RAWR-Designs / Re: Terayon v1.3.0.5 - BETA
« on: November 02, 2007, 08:18:00 PM »
     
Terayon v1.3.0.5 Best Features For My Uses...


[new] Terayon styled QuickLink icons
[new] An image SlideShow
[new] Sort on: Size, Date, Hits and Name have been added correctly
[new] Support for a shoutbox from www.myshoutbox.com
[new] IconGenerator - If there is no icon available, it generates an dynamic icon
[chg] Entire page width increased by 5% (85%)
[chg] Template images have been decreased in size by around 50%
[to-do] Image gallery



itsss grttt work GIANT EAGLE.... really grt...

i am using TERAYION 1.2.1... and waitng for 1.3....

11
RAWR-Designs / Re: Terayon v1.3.0.5 - BETA
« on: November 02, 2007, 08:11:52 PM »
ooohhh thanks...... 17 leftttttt  ::)

12
HFS ~ HTTP File Server / Re: Search System with HFS
« on: November 02, 2007, 08:05:35 PM »
No No No...... !! Creat It Ur serach engine FLASH THAT USES ~FILES.LST.....

13
HFS ~ HTTP File Server / Re: things to come: ?sort=e ?rev
« on: November 02, 2007, 07:54:34 PM »
Quote
I think what GE was trying to say above is that, can it be combined with the &sort=obj so one click sorts up, next click sorts down, with hfs sorting the logic... cause this current tool will require another button on the interface...

well i think its impossible rejetto and stevens guy

14
HFS ~ HTTP File Server / Re: Hidden Folder For Only 1 User
« on: November 02, 2007, 07:49:53 PM »
this is old frind... i am finding new tricks.. anyway thanks for ur help and comments.... thanks :)

15
HFS ~ HTTP File Server / Hidden Folder For Only 1 User
« on: November 02, 2007, 08:56:27 AM »
It Is Possible ?? Hide Folder For Only 1 User ? If Possible So Tell Me...

Thanks

Pages: 1 2 3