How do I make a menu option show underline on a mouse over?
Posted: Mon Feb 09, 2015 5:37 pm
I'd like my menu options to underline on a mouse over event.
How do I do this?
How do I do this?
https://forum.profoundlogic.com/forum/
Code: Select all
a:hover {
text-decoration: underline;
}
Code: Select all
var a = getOutputFields();
for (var i = 0; i < a.length; i++)
{
...
a[i].innerHTML = get(a[i]);
applyProperty(a[i],"field type","hyperlink");
applyProperty(a[i],"css class","A20");
...
}
Code: Select all
DIV.A20 A, A {
font-family: sans-serif;
font-size: 12px;
font-weight: bold;
color: #0067C3;
text-decoration: none;
}
DIV.A20 A:hover {
text-decoration: underline;
}
Code: Select all
<div id="my-widget">
<a href="javascript:void(0)">Text On Screen Here (with trailing blanks)</a>
</div>
Code: Select all
/* The basic attributes of the link. Sets the font, size, boldness, color. */
DIV.mylink A {
font-family: sans-serif;
font-size: 12px;
font-weight: bold;
color: #0067C3;
text-decoration: none;
}
/* when mouse hovers over "mylink", add the underline */
DIV.mylink A:hover {
text-decoration: underline;
}
Code: Select all
function replaceiDots() {
var fields = getOutputFields();
for (var i = 0; i < fields.length; i++) {
var field = fields[i];
var str = field.id;
if ((str.split("_")[2] == "43") || (str.split("_")[2] == "4")) {
fields[i].innerHTML=fields[i].innerHTML.replace(/\ \./mgi," "));
fields[i].innerHTML=fields[i].innerHTML.replace(/\" "\./mgi," "));
}
}
}
Code: Select all
function replaceiDots() {
var fields = getOutputFields();
for (var i = 0; i < fields.length; i++) {
var field = fields[i];
var str = field.id;
if ((str.split("_")[2] == "43") || (str.split("_")[2] == "4")) {
pui.set(field, field.innerHTML.replace(/\ \./mgi," "));
pui.set(field, field.innerHTML.replace(/\" "\./mgi," "));
}
}
}
Code: Select all
replaceiDots(); // Remove dots from menu items.
// Center Infinium copyright page.
var a = getOutputFields();
for (var i = 0; i < a.length; i++)
{
.
.
applyProperty(a[i],"value", "script: trim(value)");
applyProperty(a[i],"css class","mylink");
applyProperty(a[i],"field type","hyperlink");
.
.
}
// ( replaceiDots() was removed from down here... now at the top )