Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > Sunrise

Notices

 
 
Thread Tools Search this Thread
Old 11-15-2006, 09:36 PM   #1
Jupiter
Junior Member
Jupiter began at the beginning.
 
Posts: 7
Karma: 41
Join Date: Nov 2006
Device: PalmOne Zire 31
Scripting

I am trying to script a document to exclude images on link depths above 1. I am clueless with Java, but thought I'd give it a try.

Quote:
document.onimagelink = function(link) {
if (link.depth => 1) {
link.exclude = true;
}
};
This is what I tried. It crashed, saying "Error: Exception reading script file null: syntax error (<embedded> #2)" What am I doing wrong?


Thanks in advance.
Jupiter is offline  
Old 11-16-2006, 05:39 AM   #2
Laurens
Jah Blessed
Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.
 
Laurens's Avatar
 
Posts: 1,295
Karma: 1373
Join Date: Apr 2003
Location: The Netherlands
Device: iPod Touch
Use
Code:
if (link.depth >= 1)
Laurens is offline  
Advert
 


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting with epub-meta averyml Calibre 20 11-17-2016 10:13 AM
Possible scripting engine for Sigil Valloric Sigil 48 10-17-2009 09:58 AM
iLiad Lua: scripting for Iliad hansel iRex Developer's Corner 3 12-14-2008 06:51 PM
Simple browser scripting for content? mphuie Workshop 2 01-29-2008 08:38 PM
Any NetNewsWire Scripting Pros out there? adinb Sony Reader 0 02-25-2007 01:44 AM


All times are GMT -4. The time now is 03:21 PM.


MobileRead.com is a privately owned, operated and funded community.