Comunidad Wortit

martes, 23 de julio de 2013

El dia de hoy les ablare sobre una comunidad que cree a partir de un script en internet y que agregue un theme de un programador en internet o mas bien un maestro de la programacion llamado TO-UP , gracias a el y el script puede crear una comunidad con varios estilos y opciones para que ustedes los navegantes puedan compartir divertirse y demas en esta comunidad : Wortit.com.ar y si no les aparece puede probar Wortit.tk.

Espero pueda ser de gran ayuda para que puedan compartir contenido en : Comunidades y post individuales, y divertirse con los juegos y poder compartir con los usuarios en los mensajes privados y ganar rangos y medallas por medio de los puntos que recibiran por medio de los post que podran votar los usuarios y poder publicar fotos en el host de fotos y otras opciones que esperamos agregar, espero se registren y si tienen alguna duda no olviden comentar... 

y si quieres unirte a este sistema como moderador o administrador solo mandame un mensaje privado por medio de la comunidad Wortit.com.ar o Wortit.tk , esperen las siquientes publicaciones con mas novedades de los proyectos que estoy haciendo y si quieres formar parte de uno de ellos solo enviame un mensaje privado en mi comunidad y si te falla y aparece error solo avisame y mandame un mensaje privado por medio de google plus. 

gracias por leer esta publicacion... :) 

Buscador de palabra - PHP - Javascript

lunes, 24 de junio de 2013


Bueno ahora les traigo mi primer tutorial sobre php bueno ahora le enseñare como editar el siquiere codigo o mas bien script , o mejor llamado buscador es un script llamado XSEARCH version 5.2 y bueno aqui selo muestro y les dejo un demo y un link para que lo descarguen





Bueno Empezemos con el tutorial.

Primero Crearemos En Inicio, lo llamaremos. xsearch-5.2.htm



<html>
<head>
<title>XSearch 5.2</title>

<script language="Javascript" src="xsearch-5.2.js"></script>
<script language="Javascript" src="db.js"></script>

<body bgColor="#ffffff">
<script language="Javascript">
	initXsearch();
</script>	
</body>
</html>

Luego sequimos con El CSS

A Este lo llamaremos. xsearch.css



h3 {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: normal; color:#6f6f6f}
p {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt}
li {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; margin-left: 5%;}
.xtitle { font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12pt; font-weight: normal}
.xresult { font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 9pt; font-weight: normal}
.xlocation { font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 10pt; color:green; font-weight: normal}
.xsmall { font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 8pt; color:green; font-weight: normal}


Estas primeras dos parte no necesitan explicacion alguno solo el principio, En el inicio visualizas un script muy Pequeño , bueno ese script es el que mostrara el buscador completo, ya que los archivos Javascript contienen la pagina completa...

Ahora vamos con los archivos Javascript.

El Primero lo llamaremos  xsearch-5.2.js



/* XSearch Engine version5.2		*/
/* developed by P.Bestebroer		*/
/* http://www.dynamic-core.net	 	*/

function trecords(){
	this.index=(trecords.count++)
	this.link=''
	this.keywords=''
	this.description=''
	return this
}
trecords.prototype.set=function(link,keywords,description) {
	this.link=link
	this.keywords=keywords
	this.description=description
}
trecords.prototype.searchstring=function() { return this.link+' '+this.keywords+' '+this.description }
trecords.prototype.count=0

function add(link,keywords,description) {
	al=records.length
	records[al]=new trecords()
	records[al].set(link,keywords,description)
}

records = new Array()
finds=0
sites=0
version="v5.2"
andresult=false
SortResults=true
display_start=0
displast=10
function qsort(f, l){  // not used anymore, causes stack-overflow in large database
// Qsort function by Rob B.
	var a=f
	var b=l
	var s
	var m = results[(a+b)>>1].val
   	while (a<=b) {
		while (results[a].val>m) {a++}
		while (m>results[b].val) {b--}

		if (a<=b) {
            		s=results[a]
			results[a]=results[b]
			results[b]=s
            	a++
            	b--
        	}
	} 
	if (f<b) this.qsort(f, b)
	if (a<l) this.qsort(a, l)
}
function bsort() {
	for (var i=results.length-1; i>=0; i--) {
		for (var j=i; j>=0; j--) {
			if (results[i].val>results[j].val) {
				s=results[i]
				results[i]=results[j]
				results[j]=s
			}
		}	
	}
}

function searchAll(keyword){
	var timeA=new Date()
	var nw=0
	finds=0
	sites=0

	var x = parseIt(keyword)
	if(x == -1) return
	total_keywords=x

	document.open()
	document.clear()
	document.write('<link rel="stylesheet" href="xsearch.css">')
	AddBody()

	if (keyword.length>50) keyword=keyword.substring(0,60)+"..."

	results=new Array()
	for (q=0; q<records.length; q++) {
		results[q]=new Array()
		results[q].rec=q
		results[q].val=0
	}

	for (nw=0; nw<keywords.length; nw+=1) search(keywords[nw])
	if (andresult) {
		for (a=0; a<results.length; a+=1) {
			if (results[a].val>0) {
				if (results[a].val<=(total_keywords-1)<<1) {
					results[a].val=0
					sites-=1
				}
			}
		}
	}
	if (SortResults && keywords!='[all]') bsort()

	// Now we build the output page
	displast=display_start
	displast+=10
	if (displast>sites) displast=sites

	var timeB=new Date()

	if (finds==0) { display_start=-1; displast=0 }
	document.write("<center><h3>Resultados <b>"+(display_start+1)+"-"+(displast)+"</b> de <b>"+sites+"</b> para <b>"+keyword+"</b> Tiempo de búsqueda <b>"+((timeB-timeA)/1000)+"</b> segundos.</h3></center>")

	if (displast>sites && finds!=0) displast=sites+1


	if (finds==0) {
		document.write("<h3><font color=green>no se encontró <b>''"+keyword+"''</b></font></h3>"+
						"<p>La palabra - <b>"+keyword+"</b> - no se encuentra en la base de datos.</p>"+
						"<LI>Verifique que haya deletreado bien la palabra.</li>"+
						"<LI>Intente nuevamente utilizando otra palabra clave.</li>"+
						
						"<LI>Pruebe ingresando varias palabras en un mismo campo.</li></span>"+
						"</p>")
		DisplayXSearch()
		document.close()
		return
	}

	q2=display_start
	q3=displast
	for (q=display_start; q<q3; q+=1) {
		if (results[q].val>0) {
			rc=results[q].rec
			document.write("<span class='xtitle'>"+records[rc].link+"</span><br>")
			x1=records[rc].link.indexOf('http://')
			if (x1==-1) x1=records[rc].link.indexOf('href=')+5
			else x1+=7
			x2=records[rc].link.indexOf('>')-1
			if (x1>0 && x2>0) {
				tmp=records[rc].link.substring(x1,x2)
				x2=tmp.indexOf(' ')
				if (x2>0) tmp=tmp.substring(0,x2)
				if (tmp.substring(0,1)=="'") tmp=tmp.substring(1,tmp.length-2)
				if (tmp.substring(0,1)=='"') tmp=tmp.substring(1,tmp.length-1)
				document.write("<table border=0 width=500><tr><td><span class='xresult'>"+records[rc].description+"</span></td></tr></table><span class='xlocation'>"+tmp+"</span><br><br>")
			}
			q2++
   		}
	}

	if (finds>10) {
		document.write("<BR>")
		pages=Math.round(finds/10)
		if (finds%10<6)	pages++

		// Create the parameter string
		paramstring=searchname+"?keywords="+keyword+"&and="+andresult+"&sort="+SortResults

		document.write("<center><span class='xsmall'>")
		if (display_start>0) document.write("<a href='"+paramstring+"&disp="+(display_start-10)+"'>anterior</a>")
		document.write("&nbsp;&nbsp;&nbsp;")

		for (i=1; i<=pages; i+=1){
			if ((((i-1)*10)+1)<=sites) document.write("<a href='"+paramstring+"&disp="+(((i-1)*10))+"'>"+i+"</a>&nbsp&nbsp ")
		}
		document.write("&nbsp;&nbsp;&nbsp;")
		if (displast<=sites) document.write("<a href='"+paramstring+"&disp="+(displast)+"'>siguiente</a>")
		document.write("</span></center>")
	}
	DisplayXSearch()
	document.close()
}

function Cat() {
	document.open()
	document.clear()
	document.write('<link rel="stylesheet" href="xsearch.css">')
	AddBody()
	DisplayXSearch()
	document.close()
}

function stripInput(key) {
	while(key.substring(0,1) == ","  || key.substring(0,1) == " " ) key = key.substring(1,key.length)
	while(key.substring(key.length-1,key.length) == "," || key.substring(key.length-1,key.length) == " ") key = key.substring(0,key.length-1)
	return key
}

function parseIt(key) {
	key=stripInput(key)+" "
	var y=0

	while(key.indexOf(" ") > 0) {
		if (key.substring(0,1)=='"') {
			var pos=key.indexOf('"',2)
			keywords[y]=key.substring(1,pos)
			keywords[y]=stripInput(keywords[y])
			y++
			key=key.substring(pos+1,key.length)
		} else {
			var pos=key.indexOf(' AND ')
			if ((pos>0) && (key.indexOf(' ')>=pos)) {
				pos=key.indexOf(' ',pos+5)
				keywords[y]=key.substring(0,pos)
				keywords[y]=stripInput(keywords[y])
				y++
				key=key.substring(pos+1,key.length)
				if (key.substring(0,4)=='AND ') {
					pos=keywords[y-1].indexOf(' ')+5
					key=keywords[y-1].substring(pos,keywords[y-1].length)+' '+key
				}
			} else {
		  		var pos=key.indexOf(' OR ')
		  		if ((pos>0) && (key.indexOf(' ')>=pos))	{
					pos=key.indexOf(' ')
					keywords[y]=key.substring(0,pos)
					keywords[y]=stripInput(keywords[y])
					if (keywords[y]!=keywords[y-1])	y++
					key=key.substring(pos+1,key.length)
					pos=key.indexOf('OR ')
					key=key.substring(pos+3,key.length)
					pos=key.indexOf(' ')
					keywords[y]=key.substring(0,pos)
					keywords[y]=stripInput(keywords[y])
					y++
					key=key.substring(pos+1,key.length)
					if (key.substring(0,3)=='OR ') key=keywords[y-1]+' '+key
				} else {
					var pos = key.indexOf(" ")
					keywords[y]=key.substring(0,pos)
					keywords[y] = stripInput(keywords[y])
					y++
					if(y > 50) return -1
					key=key.substring(pos+1,key.length)
				}
			}
		}
	}
	return y-1
}

var keywords = new Array()
var results

function AddBody() {
	var keytext='"'+searchname+'?keywords="+'
	var andtext='"&and="+'

	document.write('<script>function doSearch(){'+
						'searchwords=document.searchform.searchwords.value; '+
						'while (searchwords.indexOf(" ")>-1){ pos=searchwords.indexOf(" ");'+
						'searchwords=searchwords.substring(0,pos)+"+"+searchwords.substring(pos+1); }'+
						'document.location='+keytext+' searchwords+'+andtext+'"0"}'+
						'<'+'/'+'script>'
						)

	templateBody()
	document.write("<form name='searchform' method='post' action='javascript:doSearch()'><table border='0' width='100%'><tr><td align='center'><font face='Arial, Helvetica, sans-serif' size='3'><input name='searchwords' type='text' size='30'>&nbsp;&nbsp;<a href='javascript:doSearch()'>"+ButtonCode+"</a></font></td></tr></table></form><hr size=1>")
	if (usebannercode) bannerCode()
}

function DisplayXSearch() {
	// This line can be removed, but please don't add anything like
	// copyright by <your name here> because that's not allowed, and
	// if you remove or change this line, make sure there is some credit here
	// and a link to www.dynamic-core.net so that other people can also
	// get their hands on this FREE search engine.. Thank you.
	document.write("<h3><center>Haga clic aquí para bajar <a href=xsearch.zip>XSearch "+version+"</a> Creado por P. Bestebroer</center></h3>")
	templateEnd()
}

function search(keyword) {
	var hit=0
	var addcomplete=0

	for (q=0; q<records.length; q++) {
		addcomplete=0
		search_parm=" "+records[q].searchstring()+" "
		search_parm=search_parm.toLowerCase()

		if (keyword.indexOf(' AND ')>0) {
			firstword=keyword.substring(0,keyword.indexOf(' ')).toLowerCase()
			lastword=keyword.substring(keyword.indexOf(' AND ')+5,keyword.length).toLowerCase()
			if ((search_parm.indexOf(" "+firstword+" ") != -1) && (search_parm.indexOf(" "+lastword+" ")!= -1 )) {
				hit++
				finds++
				if(hit<2) { 
					if (results[q].val==0) sites++
					results[q].val +=2
				} 
			}
		} else {
			keyword=keyword.toLowerCase()
			if ((search_parm.indexOf(" "+keyword+" ") != -1) ||(keyword=="[all]")) {
				hit++
				finds++
				if(hit<2) { 
					if (results[q].val==0) sites++
					results[q].val+=2
				} 
			} else {
				// check for a half hit (ie. search:share find:SHAREware)
				if (search_parm.indexOf(keyword) != -1)	{
					hit++
					finds++
					if(hit < 2) {
						if (results[q].val==0) sites++
						results[q].val+=1
						x=search_parm.indexOf(keyword)+keyword.length
						pos=search_parm.substring(1,x-keyword.length)
						while (pos.indexOf(" ")!=-1) {
							y=pos.indexOf(" ")
							pos=pos.substring(y+1,pos.length)
						}
						if (pos.length<=2) addcomplete++
	
						pos=search_parm.substring(x,search_parm.length)
						fullresult=search_parm.substring(x,x+pos.indexOf(" "))
						
						if (fullresult.length<=2) addcomplete++
						if (addcomplete>1) results[q].val+=1
					}
				}
			}
		}
		hit=0
	} 
}                                       

var searchwords = ''
var newload = true

function initXsearch() {
	if (searchwords!='') searchAll(searchwords)
	else if (newload) Cat()
}

function tparams(){
	parameters=document.location.search
	parameters=unescape(parameters.substring(1,parameters.length)+'&')

	this.params=new Array()
	i=0
	while (parameters.indexOf('&',0)!=-1) {
		al=this.params.length
		this.params[al]=new Array()
	
		tmp=parameters.substring(0,parameters.indexOf('&',0))
		parameters=parameters.substring(parameters.indexOf('&',0)+1)

		if (tmp.indexOf('=')!=-1) {
			this.params[al].command=tmp.substring(0,tmp.indexOf('='))
			this.params[al].value=tmp.substring(tmp.indexOf('=')+1)
		} else {
			this.params[al].command=tmp
			this.params[al].value=''
		}
	}

	return this
}
tparams.prototype.getValue=function(param){
	value=''
	param=param.toLowerCase()
	al=this.params.length
	for (var i=0; i<al; i+=1) if (this.params[i].command==param) value=this.params[i].value
	return value
}

params=new tparams()
if (params.getValue('keywords')!=''){
	searchwords=params.getValue('keywords')
	origsearchwords=searchwords
	while (searchwords.indexOf('+')>-1) {
		pos=searchwords.indexOf('+')
		searchwords=searchwords.substring(0,pos)+' '+searchwords.substring(pos+1)
	}
}
if (params.getValue('sort')!='')
	if (params.getValue('sort')=='0' || params.getValue('sort')=='false') SortResults=false
	else SortResults=true
if (params.getValue('and')!='')
	if (params.getValue('and')=='0' || params.getValue('and')=='false') andresult=false
	else andresult=true
if (params.getValue('disp')!='') display_start=parseInt(params.getValue('disp'))

Ahora vamso con el siquiente archivo, El que definira las paginas que se podran buscar, o mejor llamado DB , database o base de datos pero sin tabla mysql...

A Este lo llamaremos. db.js

/* XSearch version 5.2 - Database file */

/* configuration settings */

	searchname = 'xsearch-5.2.htm'
	
	usebannercode=true
	ButtonCode = "<img src='searchbutton.gif' border=0>" 
	
	function templateBody() {
		document.write('<html><head><title>XSearch</title><'+
		'script language="Javascript">'+
		'<'+'/'+'script'+'></head><body bgcolor="#ffffff" text="#000000" link="#000099" vlink="#996699" alink="#996699"><Center><font face="Arial" size="3"><font face=Verdana size=12><b>Buscador </b><i>XSearch5.2</i></font><table border=0 width=640><tr><td>');
	}

	function templateEnd() {
		document.write('</td></tr></table></font></center></body></html>');
	}
	function bannerCode() {
	}	

/* end configuration settings */

/* database records */

add("<a href='URL DE LA PAGINA '>Título</a>","Palabras clave o Etiquetas separadas por Comas [,] ","Descripcion de la pagina")

add("<a href='URL DE LA PAGINA '>Título</a>","Palabras clave o Etiquetas separadas por Comas [,] ","Descripcion de la pagina")
add("<a href='URL DE LA PAGINA '>Título</a>","Palabras clave o Etiquetas separadas por Comas [,] ","Descripcion de la pagina")

/* end database records */

Recuerda agregar la imagen que biene dentro de el archivo para descargar en la misma carpeta para que pueda mostrarse. RECUERDA TODOS LOS ARCHIVOS EN UNA MISMA CARPETA.

Ya que Tenemos Estos archivos solo falta agregar mas Paginas ,donde ves la palabra ADD y dentro la url titulo etiquetas y descripcion bueno eso es una de las paginas que se mostraran y tu tienes que agregar mas de estos bien definidos para que las personas puedan ver y saber que tema o de que trata en la descripcion de la pagina.

tambien en el archivo DB.JS puedes editar el titulo de la pagina lo que aparecera en el principio.

Esto es todo .

Gracias por interesarse en este tema. 

Espera mas en Showlot.blogspot.com


Escrito por: Andy Gomez.   Sistema creado por: www.dynamic-core.net

scarenot.hol.es - Buscador

Scarenot

Es un subdominio donde hago pruebas de sistemas en PHP y esta vez instale un Buscador , donde configure el codigo y ahora buscas paginas sobre Programacion web y diseño grafico , es un simple sistema y facil de copiar, pero es muy util para las personas que solo quieren buscar paginas sobre diferentes LENGUAJES DE PROGRAMACION ...

Aqui les dejo un inframe de la pagina para que vean el resultado de este sistema PHP y si os desean que les pase el codigo solo dejen un comentario pidiendolo... o esperen a que suba el codigo a el blog ya que no me perecio agregarlo a esta publicacion, entonces lo subire luego.



Prueba buscar palabras como: 
      CSS
      HTML
      PHP
     JQUERY
    AJAX etc...

Aqui el inframe.




Gracias por interesarte en el tema...

Escrito por: Andy Gomez.

Textareas-V1

domingo, 23 de junio de 2013

Textareas V1

                                                            

DateForm. - Red Social - Microbloggin.

miércoles, 19 de junio de 2013

DateForm-microblogging - Red Social


DateForm- microbloggin - red social.
es una pagina creada en hostinger.es
dateform es una pagina creada gracias al sistema de SAHRETRONIX que brinda un un sistema para tu pagina de usuarios con microbloggin donde pude las personas comunicarse entre si
y muchas opciones que tiene esta pagian.

TE INVITO A QUE TE REGISTRES .
y formes parte de esta comunidad en internet.

                        

                       Escrito por: Showlot.blogspot.com

Black menu vertical con CSS3

Black menu vertical



Hola de nuevo a todos los que me visitan xD,  bueno esta vez les comparto un menú que hice hace poco utilizando algo de css3 y html, yo creo que me quedo bien, aunque se que no es la gran cosa se los comparto para los usuarios que necesiten uno asi en su sitio web o blog, el menú es negro con un efecto hover, además esta en vertical, luego tratare de hacer uno desplegable y en horizontal y se los compartire, bueno entonces empesamos, es muy sencillo tenerlo y ligero:

copia y pega el siguiente código css en donde tengas los estilos de tu web, si usas blogger busca ]]></b:skin> y arriba pega el siguiente código

 #menu {
    border: 2px solid #000000;
    list-style: none outside none;
    margin: 0;
    max-width: 200px;
    padding: 0;
    position: relative;
}

#menu li a {
    background-color: #333333;
    border-bottom: 1px solid #000000;
    border-top: 1px solid #444444;
    text-align: left;
    color: #DDDDDD;
    display: block;
    font-family: Arial,Helvetica;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 15px;
    text-decoration: none;
    text-decoration: none;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

#menu li a:hover {
    padding-left:30px;
    background-color: #444;
    border-bottom: 1px solid #111;
    border-top: 1px solid #555;
    color: #FFF;
}
 Pega el siguiente código Html en donde quieras el menú:

<ul id="menu">
    <li><a href="#">Menu 1</a></li>
    <li><a href="#">Menu 2</a></li>
    <li><a href="#">Menu 3</a></li>
    <li><a href="#">Menu 4</a></li>
    <li><a href="#">Menu 5</a></li>
    <li><a href="#">Menu 6</a></li>
< /ul>

Lo que esta en rojo lo cambian por lo que ustedes quieran, y los "#" lo cambian por el link deseado para su menú, pueden agregar o quitar contenedores "</li>" para agrandar o encojer el menu dependiendo de cuantos links quieran tener
 El resultado sera el siguiente:


un menu simple pero bonito, espero les haya gustado, si tienen algun problema o pregunta dejenla en un comentario :)
 
 
 
Escrito Por: css.zanime-mf.com