Foros del Web » Programando para Internet » Javascript »

buscador interno sencillo en dreamweaver...

Estas en el tema de buscador interno sencillo en dreamweaver... en el foro de Javascript en Foros del Web. alguna persona que me colabore, con la forma de hacer un buscador interno sencillo en dreamweaver mx 2004... Gracias...
  #1 (permalink)  
Antiguo 03/12/2007, 15:41
Avatar de cbo77  
Fecha de Ingreso: diciembre-2007
Ubicación: en medellin colombia
Mensajes: 58
Antigüedad: 16 años, 5 meses
Puntos: 0
buscador interno sencillo en dreamweaver...

alguna persona que me colabore, con la forma de hacer un buscador interno sencillo en dreamweaver mx 2004... Gracias
  #2 (permalink)  
Antiguo 03/12/2007, 15:51
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: buscador interno sencillo en dreamweaver...

Que problema tienes? Si publicas tu código y eres mas claro en tus preguntas con mucho gusto te podremos ayudar en el foro.

Saludos.
  #3 (permalink)  
Antiguo 04/12/2007, 12:34
Avatar de cbo77  
Fecha de Ingreso: diciembre-2007
Ubicación: en medellin colombia
Mensajes: 58
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: buscador interno sencillo en dreamweaver...

Cita:
Iniciado por GatorV Ver Mensaje
Que problema tienes? Si publicas tu código y eres mas claro en tus preguntas con mucho gusto te podremos ayudar en el foro.

Saludos.
el problema que tengo es que no se donde poner el archivo .js ... ni un css

hay va el .js

var skype_injection_path='chrome://skype_ff_toolbar_win/content/';
var skype_tool=null;

/*window.addEventListener("click",skype_click_handl er,true);
function skype_click_handler(event)
{
if (skype_tool)
skype_tool.closemenu();
//HideSkypeMenuFull();
} */
  #4 (permalink)  
Antiguo 04/12/2007, 12:35
Avatar de cbo77  
Fecha de Ingreso: diciembre-2007
Ubicación: en medellin colombia
Mensajes: 58
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: buscador interno sencillo en dreamweaver...

aca sigue el .js

//CALL BUTTON
var ActiveCallButtonPart=0;
function SetCallButtonPart(obj)
{
if (obj.getAttribute('id') == '__skype_highlight_id_left')
{
ActiveCallButtonPart=0;
}
else if (obj.getAttribute('id') == '__skype_highlight_id_right')
{
ActiveCallButtonPart=1;
}
}

function SetCallButton(obj, hl, isInternational)
{
var cb_part_l=null;
var cb_part_ml=null;
var cb_part_mr=null;
var cb_part_r=null;
if (obj.getAttribute('rtl') == 'false')
{
cb_part_l=obj.firstChild.firstChild;
cb_part_ml=obj.firstChild.lastChild;
cb_part_mr=obj.lastChild.firstChild;
cb_part_r=obj.lastChild.lastChild;

cb_flag=obj.firstChild.lastChild.firstChild;
if (cb_flag && cb_flag.isSameNode(obj.firstChild.firstChild.first Child) == true)
cb_flag=null;
}
else
{
cb_part_l=obj.lastChild.lastChild;
cb_part_ml=obj.lastChild.firstChild;
cb_part_mr=obj.firstChild.lastChild;
cb_part_r=obj.firstChild.firstChild;

cb_flag=obj.lastChild.firstChild.lastChild;
if (cb_flag && cb_flag.isSameNode(obj.lastChild.lastChild.lastChi ld) == true)
cb_flag=null;
}

if (hl == 1)
{
cb_part_l.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_mouseover_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_mouseover_m.gif')";
cb_part_mr.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_mouseover_m.gif')";


if (isInternational=="0")
{
if (ActiveCallButtonPart==0) //left
{
cb_part_r.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_mouseonflag_r.gif')";
//shadow
if (cb_flag)
{
cb_flag.style.top='1px';
cb_flag.style.left='1px'; /*top right bottom left*/
cb_flag.style.padding='1px 0px 0px 1px';//'2px 0px 0px 0px';
}
}
else //right
{
cb_part_r.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_mouseover_r.gif')";
//flag
if (cb_flag)
{
cb_flag.style.top='0px';
cb_flag.style.left='0px';
cb_flag.style.padding='0px 1px 1px 0px';//'0px 1px 1px 0px';
cb_flag.style.margin='0px 0px 2px 0px;';
}
}
}
else
{
cb_part_r.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_mouseover_r.gif')";
//flag
if (cb_flag)
{
cb_flag.style.top='0px';
cb_flag.style.left='0px';
cb_flag.style.padding='0px 1px 1px 0px';
cb_flag.style.margin='0px 0px 2px 0px;';
}
}
}
else
{
cb_part_l.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_normal_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_normal_m.gif')";
cb_part_mr.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_normal_m.gif')";
cb_part_r.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_normal_r.gif')";

//flag
if (cb_flag)
{
cb_flag.style.top='0px';
cb_flag.left='0px';
cb_flag.style.padding='0px 1px 1px 0px';
cb_flag.style.margin='0px 0px 2px 0px;';
}
}
}
var cb_l='';
var cb_m='';
var cb_r='';

function SetCallButtonPressed(obj, pr, isInternational)
{
var cb_part_l=null;
var cb_part_ml=null;
var cb_part_mr=null;
var cb_part_r=null;
if (obj.getAttribute('rtl') == 'false')
{
cb_part_l=obj.firstChild.firstChild;
cb_part_ml=obj.firstChild.lastChild;
cb_part_mr=obj.lastChild.firstChild;
cb_part_r=obj.lastChild.lastChild;

cb_flag=obj.firstChild.lastChild.firstChild;
if (cb_flag && cb_flag.isSameNode(obj.firstChild.firstChild.first Child) == true)
cb_flag=null;
}
else
{
cb_part_l=obj.lastChild.lastChild;
cb_part_ml=obj.lastChild.firstChild;
cb_part_mr=obj.firstChild.lastChild;
cb_part_r=obj.firstChild.firstChild;

cb_flag=obj.lastChild.firstChild.lastChild;
if (cb_flag && cb_flag.isSameNode(obj.lastChild.lastChild.lastChi ld) == true)
cb_flag=null;
}
if (pr == 1)
{
cb_l=cb_part_l.style.backgroundImage;//getAttribute('src');
cb_m=cb_part_mr.style.backgroundImage;
cb_r=cb_part_r.style.backgroundImage;//getAttribute('src');

if (isInternational=="0")
{
if (ActiveCallButtonPart==0) //left
{
//obj.firstChild.firstChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_l.gif');
cb_part_l.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
}
else //right
{
//obj.firstChild.firstChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_l.gif');
cb_part_l.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
cb_part_mr.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
//obj.lastChild.lastChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_r.gif');
cb_part_r.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_r.gif')";
}
}
else
{
//obj.firstChild.firstChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_l.gif');
cb_part_l.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
cb_part_mr.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
//obj.lastChild.lastChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_r.gif');
cb_part_r.style.backgroundImage="url('chrome://skype_ff_toolbar_win/content/cb_down_r.gif')";
}
}
else
{
//obj.firstChild.firstChild.setAttribute('src', cb_l);
cb_part_l.style.backgroundImage=cb_l;
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage=cb_m;
cb_part_mr.style.backgroundImage=cb_m;
//obj.lastChild.lastChild.setAttribute('src', cb_r);
cb_part_r.style.backgroundImage=cb_r;
}
}

//COMMANDS
function SkypeToolBarInit(tb)
{
skype_tool=tb;
}

function doRunCMD(event, link, id, name)
{
if (skype_tool)
{
if (link == 'chdial')
{
var obj=event.originalTarget;
if (!obj)
obj=event;
/*var brd=getBounds(obj);
var docelem = document.documentElement;
if ((docelem.scrollTop == 0 && document.body.scrollTop != 0) || (docelem.scrollLeft == 0 && document.body.scrollLeft != 0))
docelem=document.body;

scrollY=docelem.scrollTop;
scrollX=docelem.scrollLeft;

var my=brd.top+16, mx=brd.left;/*brd.height*/

//var oDoc = obj.ownerDocument;

/*var obj2 = document.getBoxObjectFor(element);

var html_box = new XPCNativeWrapper(obj2).wrappedJSObject;
if (!html_box)
html_box = obj2;

var screenX = html_box.screenX;
var screenY = html_box.screenY;
*/

flagColor='rgb(184, 203, 255)';
skype_tool.chprefix(id, document, obj, screenY);
}
else if (link == 'copy')
skype_tool.copy_num(id, document);
else if (link == 'sms')
skype_tool.sms(id);
else if (link == 'add')
skype_tool.add(id, name);
else
skype_tool.call(id);
}
}

function runCMD(link)
{
HideSkypeFull();
doRunCMD(null, link, skype_curid, skype_cur_name);
}

//FLAG TOOLTIP
function HideSkypeFull()
{
// skype_active=false;
document.getElementById('skype_dc').style.visibili ty="hidden";
}

function ShowSkype(event, title)
{
// skype_active=true;
DoShowSkype(event.pageX, event.pageY+20, title);
}

function DoShowSkype(cX, cY, title)
{
var menu=document.getElementById('skype_dc');
menu.firstChild.nodeValue=title;
menu.style.visibility="visible";

menu.style.left=cX+'px';
menu.style.top=cY+'px';

}
var flagColor='rgb(184, 203, 255)';
function doSkypeFlag(obj,brd)
{
flagColor=brd;
}

//MENU
var skype_curid=0,skype_active=false,skype_showseed=0, skype_ctm=0,skype_cur_name='';
var curbutton=null;
function CheckCallButton(obj)
{
var res=false;
if (curbutton && curbutton.isSameNode(obj)==true)
res=true;

curbutton=obj;
return res;
}

function HideSkypeMenu()
{ //skype_tool.sd('HideSkypeMenu skype_active='+skype_active);
if(!skype_active)
HideSkypeMenuFull();
else
setTimeout("HideSkypeMenu()",1000);
}
  #5 (permalink)  
Antiguo 04/12/2007, 12:36
Avatar de cbo77  
Fecha de Ingreso: diciembre-2007
Ubicación: en medellin colombia
Mensajes: 58
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: buscador interno sencillo en dreamweaver...

sigue.js

function HideSkypeMenu2(event)
{
skype_showseed=0;
if(!skype_active)
HideSkypeMenuFull();
else
{
skype_active=false;
setTimeout("HideSkypeMenu()",1000);
}
}

function HideSkypeMenuFull()
{ //skype_tool.sd('HideSkypeMenuFull skype_active='+skype_active);
/* skype_active=false;
document.getElementById('skype_menu').style.visibi lity="hidden";*/
}

function CheckSkype()
{
skype_active=true;
}

function ShowSkypeMenu(event, call_msg, id, callto, isMobile, name, x, y)
{
try{
/* skype_active=true; //skype_tool.sd('ShowSkypeMenu skype_curid='+skype_curid+' callto='+callto+' id='+id);
if(document.getElementById('skype_menu').style.vis ibility!="hidden" && skype_curid==callto)//id
return;
skype_showseed=Math.random();
clearTimeout(skype_ctm);
var obj=event.originalTarget;
if (!obj)
obj=event;
// var brd=getBounds(obj);
//var pcx=brd.left, pcy=brd.top+16;/*brd.height;* / //alert(pcx+'--'+pcy);

scrolls=getDivScroll(obj);

var pcx = x+scrolls.left, pcy = y+scrolls.top;

skype_ctm=setTimeout('DoShowSkypeMenu(\''+call_msg +'\','+skype_showseed+',"'+callto+'",'+pcx+','+pcy +','+isMobile+',"'+name+'")',0);*/
}catch(e){ }
}

function DoShowSkypeMenu(call_msg, seed, callto, pcx, pcy, isMobile, name)
{
try{ //skype_tool.sd('DoShowSkypeMenu seed='+seed+' skype_showseed='+skype_showseed);
/* if(seed!=skype_showseed)
return;
skype_showseed=0;
skype_curid=callto;
skype_cur_name=name;
var menu=document.getElementById('skype_menu');

var my=pcy, mx=pcx;

var menubox=document.getBoxObjectFor(menu);
//var docelem = document.documentElement;
//alert(menubox.height);
//alert('doc h='+document.height + ' y='+my+' menu h='+menubox.height);
var docH=document.height;
if (docH < document.documentElement.clientHeight) docH=document.documentElement.clientHeight;
if (docH < document.documentElement.scrollHeight) docH=document.documentElement.scrollHeight;
if (docH < document.body.clientHeight) docH=document.body.clientHeight;
if (docH < document.body.scrollHeight) docH=document.body.scrollHeight;
if ((my + menubox.height) > docH)
my=my - 16 - menubox.height;
if (my < 0) my=0;
// if (document.height != 0 && (my + menubox.height) > document.height && (my + menubox.height) > document.documentElement.scrollHeight)//docelem.clientHeight)
//my=document.height - menubox.height;

var docW=document.width;
if (docW < document.documentElement.clientWidth) docW=document.documentElement.clientWidth;
if (docW < document.documentElement.scrollWidth) docW=document.documentElement.scrollWidth;
if (docW < document.body.clientWidth) docW=document.body.clientWidth;
if (docW < document.body.scrollWidth) docW=document.body.scrollWidth;
if ((mx + menubox.width) > docW)
mx=document.width - menubox.width;
if (mx < 0) mx=0;
// if (document.width != 0 && (mx + menubox.width) > document.width && (mx + menubox.width) > document.documentElement.scrollWidth)//docelem.clientWidth)

menu.style.left=mx+'px';
menu.style.top=my+'px';

skype_tool.doFixMenu(menu, isMobile, document);

menu.style.visibility="visible"; */
}catch(e){ }
}

function SetBgColor(obj, color)
{
try{
obj.lastChild.style.backgroundColor = color;
}catch(e){ }
}

//UTIL
function getBounds(element)
{
try{
var left = element.left;
var top = element.top;
while(!(element.tagName.toLowerCase() == 'span' && element.getAttribute('id') == '__skype_highlight_id'))
{
element=element.parentNode;
}
left = element.offsetLeft;
top = element.offsetTop;
for (var parent = element.offsetParent; parent; parent = parent.offsetParent)
{
left += parent.offsetLeft;
top += parent.offsetTop;
if (parent.tagName.toLowerCase() == 'div')
{
left -= parent.scrollLeft;
top -= parent.scrollTop;
}
}


return {left: left, top: top, width: element.offsetWidth, height: element.offsetHeight};
}catch(e){ }
}

function getDivScroll(element)
{
try{
var left = 0;
var top = 0;
while(!(element.tagName.toLowerCase() == 'span' && element.getAttribute('id') == '__skype_highlight_id'))
{
element=element.parentNode;
}

for (var parent = element.offsetParent; parent; parent = parent.offsetParent)
{
if (parent.tagName.toLowerCase() == 'div')
{
left -= parent.scrollLeft;
top -= parent.scrollTop;
}
}


return {left: left, top: top};
}catch(e){ }
}
  #6 (permalink)  
Antiguo 04/12/2007, 12:37
Avatar de cbo77  
Fecha de Ingreso: diciembre-2007
Ubicación: en medellin colombia
Mensajes: 58
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: buscador interno sencillo en dreamweaver...

este es el css

span#__skype_highlight_id {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px !important;
font-style: bold;
font-weight: bold;
border: 0px none;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
white-space:nowrap;
line-height: 17px !important;
/*vertical-align: baseline;/*top; */
text-indent:0px;
border-width:none;
color:black;
cursor:pointer;
position:static;
display: inline !important;
background:transparent none no-repeat scroll 0% 0px;
height:16px!important;
float: none ! important;
}

#__skype_highlight_id span.skype_tb_injection_left {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px !important;
font-style: bold;
font-weight: bold;
border: 0px none;
margin: 0px 0px 0px 0px;
padding: 1px 0px 3px 0px;
white-space:nowrap;
line-height: 17px;
text-indent:0px;
color:black;
cursor:pointer;
display: inline !important;
background:transparent none no-repeat scroll 0px 0px;
height:16px;
position:static;
/* position:relative;
left:0px;
top:0px; */
vertical-align: middle;
float: none ! important;
}
#__skype_highlight_id span.skype_tb_injection_right {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px !important;
font-style: bold;
font-weight: bold;
border: 0px none;
margin: 0px 0px 0px 0px;
padding: 0px 0px 2px 0px;
white-space:nowrap;
line-height: 17px;
text-indent:0px;
color:black;
cursor:pointer;
display: inline !important;
background:transparent none no-repeat scroll 0px 0px;
height:16px;
position:static;
/*position:relative;
left:0px;
top:0px; */
vertical-align: middle;
float: none ! important;
}
/*next one is used for adges and flag with arrow spans*/
#__skype_highlight_id span.skype_tb_injection_left_img {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 11px !important;
font-style: bold;
font-weight: bold;
border: 0px none;
margin: 0px 0px 0px 0px !important;
padding: 1px 0px 5px 0px;
white-space:nowrap;
line-height: 17px;
text-indent:0px;
color:black;
cursor:pointer;
display: inline !important;
background:transparent url('chrome://skype_ff_toolbar_win/content/cb_normal_m.gif') repeat-x scroll 0px 0px;
height:15px;
position:static;
/*position:relative;
left:0px;
top:1px; */
/*vertical-align: middle; */
float: none ! important;
}

/*Right images*/
/*margin, padding: top right bottom left*/
#__skype_highlight_id span.skype_tb_innerText {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
text-decoration: none !important;
font-size: 11px !important;
font-style: normal !important;
font-weight: bold !important;
border: 0px none;
margin: 3px 0px 0px 0px;
padding: 1px 0px 2px 0px;
white-space:nowrap;
line-height: 17px;
text-indent:0px;
border-width:none;
color:rgb(73,83,90) !important;
cursor:pointer;
display: inline !important;
height:15px;
float: none ! important;
position:static;
/*position:relative;
left:0px;
top:1px;*/
background:transparent url('chrome://skype_ff_toolbar_win/content/cb_normal_m.gif') repeat-x scroll 0% 0px;
letter-spacing:0px;
}

font#__skype_highlight_font_id {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
text-decoration: none !important;
font-size: 11px !important;
font-style: normal !important;
font-weight: bold !important;
color:rgb(73,83,90) !important;
}

#__skype_highlight_id img.skype_tb_img {
vertical-align: middle;
border: 0px none ;
margin: 0px !important;
float: none !important;
padding: 0px 0px 2px 0px;
position:static;
/*position:relative;
left:0px;
top:0px;*/
line-height: 17px;
display: inline !important;
}

span#__skype_highlight_id #__skype_highlight_id_left #__skype_highlight_id_left_img img.skype_tb_img_flag {
vertical-align: middle;
margin: 0px 0px 2px 0px;/*1*/
float: none ! important;
border-color:white;
padding:0px 1px 1px 0px;
position:static;
/* position:relative;
left:0px;
top:0px;*/
line-height: 17px;
display: inline !important;
border: 0px none;
background:transparent url('chrome://skype_ff_toolbar_win/content/shadow.gif') no-repeat scroll 1px 1px;
height:11px;
width:16px;
}
span#__skype_highlight_id #__skype_highlight_id_left #__skype_highlight_id_left_adge img.skype_tb_img_adge,
span#__skype_highlight_id #__skype_highlight_id_right #__skype_highlight_id_right_adge img.skype_tb_img_adge {
vertical-align: middle;
margin: 0px 0px 2px 0px;
float: none ! important;
border-color:white;
padding:0px 0px 0px 0px;
position:static;
line-height: 17px;
display: inline !important;
border: 0px none;
background:transparent none no-repeat scroll 0px 0px;
height:11px;
width:7px;
}

span#__skype_highlight_id img.skype_tb_img_space {
vertical-align: middle;
margin: 0px 0px 0px 0px;
float: none ! important;
border: 0px none;
padding:0px 0px 0px 0px;
position:static;
line-height: 17px;
display: inline !important;
background:transparent none no-repeat scroll 0px 0px;
height:1px;
width:1px;
}

span#__skype_highlight_id img.skype_tb_img_arrow {
vertical-align: middle;
margin: 0px 0px 0px 0px !important;
float: none ! important;
border-color:white;
padding:0px 0px 0px 0px;
position:static;
/* position:relative;
left:0px;
top:0px;*/
line-height: 17px;
display: inline !important;
border: 0px none;
background:transparent none no-repeat scroll 0% 0px;
height:3px;
width:5px;
}
.skype_tb_hidimg { visibility:hidden;position:absolute;left:0px;top:0 px; }

#skype_dc {
background:#FFFFE1; border:1px solid #666666; color:#333333; font:menu; margin:0px;
padding:3px 5px; position:absolute; left:0px; top:0px; visibility:hidden; cursor:pointer; z-index:101;
}
#skype_menu {
background:#FFFFFF; border:1px solid #666666; color:#333333; font:menu; margin:0px;
padding:0px 2px 0px 2px; position:absolute; left:0px; top:0px; visibility:hidden; cursor:pointer; z-index:101;
width: auto;
}/*width: 138px;*/

.skype_tb_table {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
border: 0; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; line-height: normal;
vertical-align: top; background-position: 0 0; text-indent:0; cursor:pointer;
table-layout:auto;border-collapse:separate;
text-align:left;
}
.skype_tb_tr {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
background:background-image; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; line-height: normal;
border: 0; line-height: normal; vertical-align: middle; text-indent:0; cursor:pointer;
text-align:left;
}
.skype_tb_td {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
background:background-image; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; line-height: normal;
vertical-align: middle; border: 0; background-position: 0 0; text-indent:0; border-width:thin; color:black; cursor:pointer;
text-align:left;
}
.skype_tb_link,.skype_tb_link:link,.skype_tb_link: visited {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
color: #003366; text-decoration: underline; background:background-image;
}
.skype_tb_link:hover,.skype_tb_link:active {
color: #FF0000; background:background-image; font-style: normal; font-weight: normal;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px;
}
  #7 (permalink)  
Antiguo 04/12/2007, 12:37
Avatar de cbo77  
Fecha de Ingreso: diciembre-2007
Ubicación: en medellin colombia
Mensajes: 58
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: buscador interno sencillo en dreamweaver...

y esta la html

<html><head>


<script language="JavaScript">
<!--
function doSearch ( s ) {
var regExp1 = /\bfield\b/;
var regExp2 = /[(,),<,>,\[,\]]/;
var str = s.value; if ( str == "" ){
alert("El campo de búsqueda debe contener un valor.");
s.focus();
} else {
if ( typeof regExp1.source != 'undefined' )
if ( regExp1.test( str ) || regExp2.test( str ) ){
var alrt = "Algunos de los caracteres introducidos no están admitidos.";
s.focus();
return alert( alrt );
}
openDbRelativeURL("LibrosBuscar?SearchView&Query=" + escape( str ) + "&start=1&count=10");
}
}

function openDbRelativeURL( url, target ){
target = (target == null ) ? window : target;
path = location.pathname.split('.nsf')[0] + '.nsf/';
target.location.href = path + url;
}

// -->
</script>

<script language="JavaScript">
<!--
document._domino_target = "_self";
function _doClick(v, o, t, h) {
var form = document._BuscarLibro;
if (form.onsubmit) {
var retVal = form.onsubmit();
if (typeof retVal == "boolean" && retVal == false)
return false;
}
var target = document._domino_target;
if (o.href != null) {
if (o.target != null)
target = o.target;
} else {
if (t != null)
target = t;
}
form.target = target;
form.__Click.value = v;
if (h != null)
form.action += h;
form.submit();
return false;
}
// -->
</script></head><script charset="utf-8" id="injection_graph_func" src="BuscarLibro_files/injection_graph_func.js"></script><link href="BuscarLibro_files/injection_graph.css" type="text/css" rel="stylesheet" charset="utf-8" id="injection_graph_css"><body bgcolor="#ffffff" text="#000000">

<form method="post" action="/Free/iWeb/home.nsf/BuscarLibro?OpenForm&amp;Seq=1" name="_BuscarLibro">
<input name="__Click" value="0" type="hidden"><table border="0" cellpadding="3" cellspacing="0" width="150">
<tbody><tr>
<td colspan="2"><font><b>Buscar:</b></font></td>
</tr>
<tr>
<td>
<input name="Query" size="25" type="text">
</td>
<td>
<input name="Search" value="Search" onclick="doSearch(this.form.Query);" type="button">
</td>
</tr>
</tbody></table> </form>

</body></html>





No he podido saber donde hubico los archivos , ni como poner las palabras claves en la base de datos. les agradeceria demasiado q me ayudaran con esto!!
  #8 (permalink)  
Antiguo 04/12/2007, 12:39
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: buscador interno sencillo en dreamweaver...

Tema trasladado a Javascript.

Porfavor publica en los foros correctos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:18.