با سلام و عرض ادب خدمت شما دوست گرامی.
هر دو را میتونید با یک css ساده انجام دهید :
1- برای برجسته شدن جدول :
[CSSS]
table:hover{width:120%;height:120%}
[/CSSS]
البته این کدی که نوشتم به صورت کلی هست ، اگر کدهای مربوط به جدول خاصی را دارید بگذارید تا مخصوص آن نوشته شود.
2- برای کادر المنتها میشود با CSS انجام داد که همون alt المنتها هست که ظاهر میشود با این کد :
[CSSS]div#qTip{border:1px solid #b64eff;z-index: 3000;background:#fff url(images/a11.gif) repeat-x;min-width:40px;min-height:14px;text-align:center;padding:5px 5px;filter:alpha(opacity=80);opacity:0.8;border-radius: 6px 6px 6px 6px;color:#000;font-size:9pt;font-family: tahoma;text-shadow:0px 0px 4px #000;-o-text-shadow:0px 0px 4px #000;-moz-text-shadow:0px 0px 4px #000;-ms-text-shadow:0px 0px 4px #000;-webkit-text-shadow:0px 0px 4px #000;display:none;box-shadow: 0px 0px 3px #000;position:absolute;margin-top:10px;margin-bottom:10px;margin-left:10px;max-width: 300px;background-color: #fff!important;direction: rtl;word-wrap: break-word;}[/CSSS]
همچنین به این کدجاوا اسکریپت نیز نیاز است :
[JSS]var qTipTag = "a,label,input,img,textarea";
var qTipX = 0;
var qTipY = 10;
tooltip = {
name : "qTip",
offsetX : qTipX,
offsetY : qTipY,
tip : null
}
tooltip.init = function () {
var tipNameSpaceURI = "http://www.w3.org/1999/xhtml";
if(!tipContainerID){ var tipContainerID = "qTip";}
var tipContainer = document.getElementById(tipContainerID);
if(!tipContainer) {
tipContainer = document.createElementNS ? document.createElementNS(tipNameSpaceURI, "div") : document.createElement("div");
tipContainer.setAttribute("id", tipContainerID);
document.getElementsByTagName("body").item(0).appendChild(tipContainer);
}
if (!document.getElementById) return;
this.tip = document.getElementById (this.name);
if (this.tip) document.onmousemove = function (evt) {tooltip.move (evt)};
var a, sTitle, elements;
var elementList = qTipTag.split(",");
for(var j = 0; j < elementList.length; j++)
{
elements = document.getElementsByTagName(elementList[j]);
if(elements)
{
for (var i = 0; i < elements.length; i ++)
{
a = elements;
sTitle = a.getAttribute("title");
if(sTitle)
{
a.setAttribute("tiptitle", sTitle);
a.removeAttribute("title");
a.removeAttribute("alt");
a.onmouseover = function() {tooltip.show(this.getAttribute('tiptitle'))};
a.onmouseout = function() {tooltip.hide()};
}
}
}
}
}
tooltip.move = function (evt) {
var x=0, y=0;
if (document.all) {//IE
x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;
y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
x += window.event.clientX;
y += window.event.clientY;
} else {//Good Browsers
x = evt.pageX;
y = evt.pageY;
}
this.tip.style.left = (x + this.offsetX) + "px";
this.tip.style.top = (y + this.offsetY) + "px";
}
tooltip.show = function (text) {
if (!this.tip) return;
this.tip.innerHTML = text;
this.tip.style.display = "block";
}
tooltip.hide = function () {
if (!this.tip) return;
this.tip.innerHTML = "";
this.tip.style.display = "none";
}
window.onmousemove = function () {
tooltip.init ();
}[/JSS]