You are reading help file online using chmlib.com
|
The DjVu Browser Plug-in fires the following events:
Name |
Description |
PageChange(newpage) |
Fired after the page changes, after the newly current page is decoded. Methods and properties that depend on the decode status of the document should be called from this event. Example (JScript): <SCRIPT FOR=myDjVu EVENT="PageChange(newpage)" LANGUAGE="JScript"> myDjVu.HighlightTerm("DjVu",0, 0,1,"&HFF0000"); </SCRIPT> |
ZoomChange(newzoom) |
Fired after the zoom changes. Example (JScript): <SCRIPT FOR=myDjVu EVENT="ZoomChange(newzoom)" LANGUAGE="JScript"> alert("Zoom Changed to " + newzoom); </SCRIPT> |
BackForwardChange (backforward) |
Fired whenever the view changes. Adds last view to the record of navigational history. Example (JScript): <SCRIPT FOR=myDjVu EVENT="BackForwardChange(backforward)" LANGUAGE="JScript"> alert("backforward is" + backforward); </SCRIPT> |
ScrollEvent (hv) |
Fires whenever user pans or moves the scrollbar. Example (JScript): <SCRIPT FOR=myDjVu EVENT="ScrollEvent(hv)" LANGUAGE="JScript"> alert("Scroll Changed " + hv); </SCRIPT> |
DisplayModeChange (newlayer) |
Fires whenever a new layer is selected for view. Example (JScript): <SCRIPT FOR=myDjVu EVENT="DisplayModeChange(newlayer)" LANGUAGE="JScript"> alert("Layer Changed to " + newlayer); </SCRIPT> |
HyperlinkClick (pDolink, pUrl, pTarget, pComment)
|
Fired when a hyperlink is clicked to enable blocking, redirecting or granting link access. Example (Visual Basic): Note: Only applicable when a DjVu document contains hyperlinks): Private Sub DjVuCtl1_HyperlinkClick(pDolink As Boolean, pUrl As String, pTarget As String, pComment As String) If (pUrl = "http://www.lizardtech.com/") then pDolink = 1 pUrl = "http://www.extensis.com" pTarget = "new" pComment = " If original URL is "http://www.lizardtech.com/", redirect to http://www.extensis.com in a new window" ElseIf (pUrl = "http://www.extensis.com") Then pDolink = 0 pComment = " If original URL is "http://www.extensis.com", block link" Else pDolink = 1 pUrl = "http://www.msn.com" pComment = "If any other URL, redirect to http://www.celartem.com" End If End Sub |
You are reading help file online using chmlib.com
|