View Full Version : 'alt' tag question
Got the answer that I need! Thanks!!!!!
justame
01-27-2003, 03:59 AM
dya...
just a checkout® the 'help page' bro...aka brothercake has...:O)))
http://www.brothercake.com/dropdown/interact_tutorial_demo3.html
just a goodluck® n' hoping it helps...:O)))
Yeah........ but you've confused me. Isn't this for a menu? I don't need that. I just wanted to add some descriptions to links on the page. More specifically, I wanted the descriptions to stay visible longer than what they're doing now.
*deeply confused* Am I missing the point to your post?
justame
01-27-2003, 04:31 AM
dya...
"quote...description of the links and images...endquote"
thattts what you originally wanted 'help' with no??? ummm ifin' ya look @ the coding bro used with his 'menu'??? you can just a pply® it to yourrr 'images' n' links...:O)))
trying not to make ya even morrre deeply just a confused® lol...
justame
01-27-2003, 04:42 AM
dya...
ummm /me took just a quick® look @ bro's code??? n' ifin' you look @ thessse parts???
like just a for® just a image® he did this...
<A href="http://www.brothercake.com/" onmouseover="over(5)" onmouseout="deactivateMenus(false)"><IMG src="resources/button_home.gif" name="b0" width="88" height="31" alt="Home" title="" border="0"></A>
n' thisss /me thinks is the 'script' thattt he has in the just a head® that makes it work...:O)))
<script language="javascript1.2">
if(!exclude) {
var fadeFilter = 'filter:progid:DXImageTransform.Microsoft.Fade(duration=0.3)';
addMainItem();
// define submenu properties (width,"align to edge","text-alignment",v offset,h offset,"filter","smCOLOR","srCOLOR","sbCOLOR","shCOLOR","saLINK","saHOVER")
defineSubmenuProperties(452,"left","left",0,0,fadeFilter,"#ecdfdf","","#792c00","","","");
addSubmenuItem("~","<span class='lightcomic'>Home is where the heart is ...</span>","","");
}
</script>
just a hoping® thattt helps ya even morrre...hehehe
n' just a hopes® tooo that bro doesnt just a grrr® nor die lolin' @ how /me is looking @ his script...lol...
Oh dear.
I looked at the coding when you first posted and it made zero sense to me........ thanks anyway. The problem isn't your answer. It's me. The more I build my site, the more I realize that I don't have a clue what I'm doing.
Okay..... *deep breath* The thing that I can't figure out is how to tell the links which submenu statement to use. *knows that made no sense*
There really isn't such a thing as a "simple" mouseover effect, is there? *slightly insane giggling*
justame
01-27-2003, 04:54 AM
dya...
there probably is just a more® simpler way to do it...lol...
n' seems /me missed just a part® of 'bros' code cause it doesnt work with the just a parts® /me posted...rotflmao!!!
/me will go n' just a look® for something else for ya.../me knows theres sommmething in the ol' thingsforhtml folder thattt will do what ya want...lol...brb
justame
01-27-2003, 04:57 AM
dya...
just a back® with the 'code'...lol...n' thisss was from just a nother® member/mod ...john k...:O)))
just a copy® this below into notepad™...n' call it whatever.html
n' thennn just a checkitout®...
/me didnt 'give ya' the image...'cept the coding still works with the 'broken' one...lol...
<html>
<head>
<title>Johns script
</title>
<style TYPE="text/css">
<!--
body{overflow:scroll;overflow-x:hidden}
.popUps{position : absolute;visibility : hidden}
//-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function moreInfo(cap,msg,txt,bgc) {
info ="<TABLE WIDTH=150 BORDER=0 CELLPADDING=1 CELLSPACING=0 BGCOLOR=#000000>"
info=info+"<TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>"
info=info+"<TR><TD><CENTER><FONT COLOR=#FFFFFF><B>"+cap+"</B></FONT></CENTER></TD></TR></TABLE>"
info=info+"<TABLE WIDTH=100% BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="+bgc+">"
info=info+"<TR><TD><FONT COLOR="+txt+">"+msg+"</FONT></TD></TR></TABLE></TD></TR></TABLE>";
if (document.layers) {
theItem.document.write(info);
theItem.document.close();
theItem.visibility = "visible";
}
else if (document.all) {
document.all("infoBox").innerHTML = info;
theItem.visibility = "visible";
}
}
function hideInfo() {theItem.visibility = "hidden"}
function tracker(e){
if(document.all){
x=event.x+document.body.scrollLeft
y=event.y+document.body.scrollTop
if(x<document.body.clientWidth/2){theItem.left= x}
else{theItem.left = x-150}
if(y<document.body.clientHeight/2){theItem.top= y-15}
else{theItem.top = y-135}
}
if(document.layers){
x=e.pageX
y=e.pageY
if(x<window.innerWidth/2){theItem.left= x}
else{theItem.left = x-150}
if(y<window.innerHeight/2){theItem.top= y-15}
else{theItem.top = y-135}
}
}
if(document.all){document.onmousemove=tracker}
if(document.layers){document.captureEvents(Event.MOUSEMOVE);document.onmousemove=tracker}
//-->
</SCRIPT>
</HEAD>
<BODY>
<DIV ID="infoBox" CLASS="popUps"> </DIV>
<SCRIPT>
var theItem = (document.layers) ? document.infoBox : infoBox.style;
</SCRIPT>
<CENTER>
<A HREF="#" onmouseover="moreInfo('Example 1','This came up because you hovered over the image.','white','red')"; onmouseout="hideInfo()"><IMG SRC="" WIDTH=100 HEIGHT=100></A>
<HR>
<A HREF="#" onmouseover="moreInfo('Example 2','This came up because you hovered over the link.','maroon','tan')"; onmouseout="hideInfo()">Hover over this link</A>
</CENTER>
</BODY>
</HTML>
I got that one to work. :)
Unfortunately, it put the description at the top of the page rather at the image as a simple box with text on the image. This is getting far more complicated than I thought. I see the effect that I want all the time......... it's simply a text box that pops up when the mouse goes over the link. I just don't want it to disappear after a second or two because the view needs more time to read my info.
justame
01-27-2003, 06:09 AM
Originally posted by Dyan
Got the answer that I need! Thanks!!!!!
dya...
thatts just a great® n' ummm did it end up being the ol' tooltip script??? lol...thattts just a nother® one that finnnallly came to /mes keyboard...:O)))
um............ I don't know what a "tooltip" is. LOL (I seriously meant it when I said that I'm pretty clueless about what I'm doing.)
But a friend showed me a script that is pretty close to what you were suggesting. Only what she suggested put the pop up box by the image rather than at the top of the page.
Len Whistler
01-27-2003, 08:58 PM
Quote from Dyan....Got the answer that I need! Thanks!!!!!
Thats just great...you see a topic that might interest you and after a bunch of answers the original question is change to "Got the answer that I need! Thanks!!!!!"
What good is that? What was to original question?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.