Bible Tooltips

By Richard Trimble Last update Dec 23, 2008 — Installed 1,271 times.

How to show 2 versions in tooltip at once

in
Subscribe to How to show 2 versions in tooltip at once 3 posts, 2 voices



raindrop User

Hi,

Thank you, Mr. Trimble, for Bible Tooltips. And for sharing it to all. How can I show two versions at the same time? I would like both the ESV and the NKJV to appear in the tooltip at once.

Please advise.

 
raindrop User

Preferably, I would like to see the 2 versions side by side if it's a multi-versed passage. If it's just a 1 or 2 verse passage. 1 Version above and 1 version below is just fine.

 
Richard Trimble Script's Author

Hi Raindrop,

This isn't a general option I currently want to put into Bible Tooltips at the moment (mainly because it would mean rethinking/upgrading the user interface significantly). However you can get both bible versions in the same tooltip by adding the following code.

This should be inserted at the very end of the file the line before it says Template. This should create the dual version you are looking for although not side by side, just one after the other.

God bless,
Richard

	{
	dataURL: 'http://www.biblegateway.com/passage/?search=',
	dataURL2: ';&version=47;50;',
	webURL: 'http://www.biblegateway.com/passage/?search=',
	webURL2: ';&version=47;50;',
	logoURL: 'http://www.biblegateway.com/languages/en/images/logo_whitebg.gif',
	logoDim: [32,138],
	logoCrop: false,
	logoCropDim: [32,138],
	topBarColour: 'grey',
	selectionXPath: ".//div[3]/h3|.//div[@class='result-text-style-normal']|.//td[@class='multipassage-box']",
	removalXPath: ".//ol|.//p[@class='txt-sm']|.//div[@class='publisher-info-bottom']|.//strong[text() = 'Footnotes:']|.//strong[text() = 'Cross references:']",
	version: 'ESV/NKJV',
	versionFullName: 'ESV/NKJV Comparison',
	versionLanguage: 'en',
	versionLanguageRTL: false,
	versionCSS: 'span.NETBibletool span.NETBibletip span.sup { \n'+
				' font-weight: bold; \n'+
				' font-size:0.65em; \n'+
				' vertical-align:text-top; \n'+
				'} \n'+
				'span.NETBibletool span.NETBibletip p { \n'+
				' margin: 0px 0px 0px 0px; \n'+
				'} \n'+
				'span.NETBibletool span.NETBibletip sup { \n'+
				' display: none; \n'+
				'} \n'+
				'span.NETBibletool span.NETBibletip h3 { \n'+
				' font-size: 18px; \n'+
				' margin: 5px 0px; \n'+
				' line-height: 20px; \n'+
				'} \n',
	},