The Additional Hyperlink Attributes (HTML) property specifies additional HTML attributes to be applied to the link defined by the Hyperlink property.
Note: This property does not appear in the Property Inspector until a hyperlink has been entered.
Applies to |
Layout objects with a link defined by the Hyperlink property. If no link is defined, this property has no effect. |
Values |
Any valid HTML tags for the link defined by the Hyperlink property. |
Default |
Blank |
PL/SQL procedure |
If the Hyperlink
property is specified for an object in a frame, clicking the object
will by default replace the frame with an entire window displaying the destination
of the hyperlink. The default attribute is target=_parent
,
which replaces the parent window or frameset with
the destination; it displays on top of any frames that have been set up,
much like _top
does. If the
reference is in a window or top-level frame, it is equivalent to the target=_self
.
To replace only the frame, include the following
HTML in the Additional Hyperlink Attributes property setting: target=filename
,
where filename
is the name of frame to replace.
To specify the HTML frame that you want to replace with the destination of the hyperlink, include the following HTML in the Additional Hyperlink Attributes property setting:
target=name of the frame
to replace
To generate a status line of information at the bottom of your Web browser when the mouse cursor passes over a Shopping Basket object, the Additional Hyperlink Attributes property setting includes the following HTML:
onMouseover "window.status='Click
here to see what is in your shopping basket';return true" onMouseout ="window.status='
';return true"
Result: Click here to see what is in your shopping basket displays at the bottom of your Web browser when the mouse cursor passes over the Shopping Basket object.
You can also set the Additional Hyperlink Attributes property to call JavaScript functions, which can perform a desired action, such as changing object color as the cursor passes over it:
onMouseover="fSwitch(2, 1)"
onMouseout ="fSwitch(2, 0)" onClick=”fSelect(2)”
Note: To use JavaScript calls, you must alter the Before Report escape to include code similar to the following:
// hide from older browsers
// iCurrentSelect maps to the currently selected menu choice,
// which is the index of the choice in the base image name
// arrayvar iCurrentSelect = -1
// the BaseImgName array holds the base image name for each
// choice in the document if new choices are added, the 'name'
// of the image and gif file must match the value added to this array
aBaseImgName = new Array(9)
aBaseImgName[0] = "nw"
aBaseImgName[1] = "db"
aBaseImgName[2] = "tl"
aBaseImgName[3] = "ap"
aBaseImgName[4] = "dw"
aBaseImgName[5] = "ol"
aBaseImgName[6] = "it"
aBaseImgName[7] = "ot"
aBaseImgName[8] = "mo"
// create the image arrays for each menu choice
aChoice0 = new Array(2)
aChoice1 = new Array(2)
aChoice2 = new Array(2)
aChoice3 = new Array(2)
aChoice4 = new Array(2)
aChoice5 = new Array(2)
aChoice6 = new Array(2)
aChoice7 = new Array(2)
aChoice8 = new Array(2)
// preload the images into the image arrays
for (var i = 0 ; i < aBaseImgName.length; i++) {
eval("aChoice" + i)[0] = new Image(150,27)
eval("aChoice" + i)[0].src = "roll_images/" + aBaseImgName[i] + "_off.gif"
eval("aChoice" + i)[1] = new Image(150,27)
eval("aChoice" + i)[1].src = "roll_images/" + aBaseImgName[i] + "_on.gif"}
function fSwitch(choiceNum, state) {
// choiceNum = the array index of the
// base img name that is being replaced
// - nw=0, db=1 ....
// state = array index of img to use
// from image array - 0=off, 1=on,
// (2=sel not implemented)
if (iCurrentSelect != choiceNum) {
// do not switch the current select
eval("document." + aBaseImgName[choiceNum]).src = eval("aChoice" + choiceNum)[state].src
}
return true}
function fSelect(choiceNum) {
// if there is a previous select then
// clear its state 0
if (iCurrentSelect > -1) {
eval("document." + aBaseImgName[iCurrentSelect]).src = eval("aChoice" + iCurrentSelect)[0].src
}
// image state of 1 hard wired, could be
// passed as a variable
eval("document." + aBaseImgName[choiceNum]).src = eval("aChoice" + choiceNum)[1].src
// store the new selection
iCurrentSelect = choiceNum
return true; }
//stop hiding -->
Copyright © 1984, 2005, Oracle. All rights reserved.