Foros del Web » Programando para Internet » Javascript »

ayuda con código

Estas en el tema de ayuda con código en el foro de Javascript en Foros del Web. Hola, estoy creando la página http://larisadebilbao.com/index.php/component/content/category/42.html?layout=blog En internet explorer me da un error de código y no se me visualiza bien. En la parte derecha ...
  #1 (permalink)  
Antiguo 07/09/2010, 01:17
 
Fecha de Ingreso: septiembre-2010
Mensajes: 2
Antigüedad: 13 años, 7 meses
Puntos: 0
ayuda con código

Hola, estoy creando la página http://larisadebilbao.com/index.php/component/content/category/42.html?layout=blog

En internet explorer me da un error de código y no se me visualiza bien. En la parte derecha deberían estar sin desplegar los menús de homenaja a forges y premio bbk. Y los nombres deberían sacar un bocadillo al pinchar en ellos.

Yo no entiendo de código, así que si alguien puede ayudarme a solucionarlo lo agradecería, porque llevo dándole muchas vueltas sin encontrar la solución.
Pego los códigos que me dan el error:

var domReady=function(){if(window.loaded)return;window .loaded=true;window.timer=$clear(window.timer);thi s.fireEvent('domready');}.bind(this);if(document.r eadyState&&window.webkit){window.timer=function(){ if(['loaded','complete'].contains(document.readyState))domReady();}.period ical(50);}else if(document.readyState&&window.ie){if(!$('ie_ready ')){var src=(window.location.protocol=='https:')?'://0':'javascript:void(0)';document.write('<script id="ie_ready" defer src="'+src+'"><\/script>');$('ie_ready').onreadystatechange=functio n(){if(this.readyState=='complete')domReady();};}} else{window.addListener("load",domReady);document. addListener("DOMContentLoaded",domReady);}}};windo w.onDomReady=function(fn){return this.addEvent('domready',fn);};window.extend({getW idth:function(){if(this.webkit419)return this.innerWidth;if(this.opera)return document.body.clientWidth;return document.documentElement.clientWidth;},getHeight:f unction(){if(this.webkit419)return this.innerHeight;if(this.opera)return document.body.clientHeight;return document.documentElement.clientHeight;},getScrollW idth:function(){if(this.ie)return Math.max(document.documentElement.offsetWidth,docu ment.documentElement.scrollWidth);if(this.webkit)r eturn document.body.scrollWidth;return document.documentElement.scrollWidth;},getScrollHe ight:function(){if(this.ie)return Math.max(document.documentElement.offsetHeight,doc ument.documentElement.scrollHeight);if(this.webkit )return document.body.scrollHeight;return document.documentElement.scrollHeight;},getScrollL eft:function(){return this.pageXOffset||document.documentElement.scrollL eft;},getScrollTop:function(){return this.pageYOffset||document.documentElement.scrollT op;},getSize:function(){return{'size':{'x':this.ge tWidth(),'y':this.getHeight()},'scrollSize':{'x':t his.getScrollWidth(),'y':this.getScrollHeight()},' scroll':{'x':this.getScrollLeft(),'y':this.getScro llTop()}};},getPosition:function(){return{'x':0,'y ':0};}});var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Cla ss.empty,onCancel:Class.empty,transition:function( p){return-(Math.cos(Math.PI*p)-1)/2;},duration:500,unit:'px',wait:true,fps:50},initi alize:function(options){this.element=this.element| |null;this.setOptions(options);if(this.options.ini tialize)this.options.initialize.call(this);},step: function(){var time=$time();if(time<this.time+this.options.durati on){this.delta=this.options.transition((time-this.time)/this.options.duration);this.setNow();this.increase ();}else{this.stop(true);this.set(this.to);this.fi reEvent('onComplete',this.element,10);this.callCha in();}},set:function(to){this.now=to;this.increase ();return this;},setNow:function(){this.now=this.compute(thi s.from,this.to);},compute:function(from,to){return (to-from)*this.delta+from;},start:function(from,to){if (!this.options.wait)this.stop();else if(this.timer)return this;this.from=from;this.to=to;this.change=this.to-this.from;this.time=$time();this.timer=this.step.p eriodical(Math.round(1000/this.options.fps),this);this.fireEvent('onStart',t his.element);return this;},stop:function(end){if(!this.timer)return this;this.timer=$clear(this.timer);if(!end)this.fi reEvent('onCancel',this.element);return this;},custom:function(from,to){return this.start(from,to);},clearTimer:function(end){ret urn this.stop(end);}});Fx.Base.implement(new Chain,new Events,new Options);Fx.CSS={select:function(property,to){if(p roperty.test(/color/i))return this.Color;var type=$type(to);if((type=='array')||(type=='string' &&to.contains(' ')))return this.Multi;return this.Single;},parse:function(el,property,fromTo){i f(!fromTo.push)fromTo=[fromTo];var from=fromTo[0],to=fromTo[1];if(!$chk(to)){to=from;from=el.getStyle(property); }


Otro código:
show: function( event ){

// If it is not open, fade in the tooltip and set this.open to true
if(!this.open){
// Get the coordinates of the mouse
this.coord = this.position( event );
// Set the style to the tooltip
this.QTip.setStyles({
'opacity': 0,
'top': this.coord.top +'px',
'left': this.coord.left +'px',
'width': 0,
'visiblity': 'visible',
'overflow': 'hidden',
});

// Start the fade in effect
this.fx.start({
'opacity': 1,
'top': (this.coord.top -10) +'px',
'width': this.options.width
});

// After faded in set this.open to true
this.open = true;
}
},



Muchas gracias
  #2 (permalink)  
Antiguo 07/09/2010, 03:57
Avatar de Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 17 años, 3 meses
Puntos: 126
Respuesta: ayuda con código

Hola y bienvenida

Primero de todo decirte que uses las etiquetas de código (highlight) para poder hacer una mejor lectura. En segundo lugar parece que estás usando algún frameworks, por lo tanto deberías de postear en ese foro. Y tercero indica el tipo de error que te muestra la consola. Si sigues estos consejos, puede que alguien te ayude, y digo puede por que, por lo poco que he leído mentalmente el código, es un galimatías

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />
  #3 (permalink)  
Antiguo 08/09/2010, 02:44
 
Fecha de Ingreso: septiembre-2010
Mensajes: 2
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: ayuda con código

Gracias, tomo nota

Etiquetas: Ninguno
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 20:46.