All,
I resolved the issue myself and thought I should post the code that works.
It may not be the shortest or the best, but it works. 8-)
You can set the num variable to control the length of text that appears
on each page. For this example I have it set to ... <CFSET num = 183 >
which shows about one paragraph at a time for the text I am using.
<CFSET press = "Honda to Begin Producing Fuel Cell Vehicle Honda to
Begin Producing Production Car Will Closely Resemble the FCX Concept
Vehicle 04/20/06 DETROIT, U.S.A - Signaling a rapid advancement in its
fuel cell vehicle technology, American Honda Motor Co., Inc., announced
that it will begin production in Japan of its next generation FCX hydrogen
powered fuel cell vehicle (FCV) in three to four years.
<p></P>
Now, with the V Flow fuel cell stack Honda has achieved ultra-low-temperature
start-up performance on par with that of a gasoline engine. The FCX Concept
drive train features three energy-efficient motors- one 80kW in the front and
a 25kW space-efficient motor in each rear wheel, leaving ample room for a
spacious cabin.
<p></P>
One barrier to FCV commercialization has been the need for high-capacity yet
lightweight and compact hydrogen storage. Honda has now developed a new
approach
to expanding storage capacity, a newly developed hydrogen absorption material
in the tank doubles capacity to 5 kg of hydrogen at 5000 PSI, extending
cruising range to 350 miles, equivalent to that of a gasoline-engine car.
<p></P>
Approaching the vehicle, the driver is recognized by vehicle sensors and
intelligent cameras unlocking the doors. The driving unit also automatically
sets the steering wheel, accelerator pedal, and instrument panel to the optimal
position for the driver. The instrument panel tilts up and down 45 degrees in
response to vehicle speed to give either a sense of security or a relaxed feel.
A system installed in the instrument panel senses the driver's line of sight
shifting toward menu icons, and operates switches accordingly, allowing the
driver hands-free operation of audio, AC and other systems.
<p></P>
As part of its effort to ensure the viability of a hydrogen-based society,
Honda
is developing the Home Energy Station, a comprehensive system designed to meet
residential energy needs by supplying electricity and heat in addition to
hydrogen
fuel for vehicles. Generating hydrogen from natural gas supplied for
residential use, the Home Energy Station system also offers consumers the
convenience of refueling hydrogen-powered fuel cell vehicles at home. The
system is equipped with fuel cells that generate and supply electricity to the
home, and is configured to recover the heat produced during power generation
for domestic water heating. In addition to reducing carbon dioxide emissions by
some 40 percent, the Home Energy Station system is expected to lower the total
running cost of household electricity, gas and vehicle fuel by 50 percent.
<p></P>">
<cfif isdefined ("url.SP")>
<CFIF ISNUMERIC(URL.SP)> <!--- starting point - story remaining --->
<CFSET story_length2 = (Len(press) - URL.sr)>
<!--- 2622 - 867 = 1755 --->
<!--- get original length - story remaining --->
<CFSET press = "#Mid(press, story_length2, URL.sr)#">
<CFELSE>
not numeric, do redirect if you want
</CFIF>
</cfif>
<p>
</p>
<CFSET num = 183 >
<CFSET story_length = Len(press)>
<CFSET NextParagraph = Find("<p></P>",press, #num#)>
<CFIF NextParagraph EQ 0 > <!--- if equal to 0 then end of story --->
<CFSET NextParagraph2 = 0 >
<cfelse>
<CFSET NextParagraph2 = (NextParagraph - 1 )>
<CFSET story_remaining = #story_length# - (#NextParagraph# + 7)>
<!--- amount of text remaining --->
<CFSET NP_STARTING_POINT = (NextParagraph + 7)>
<!--- position where last printed --->
</CFIF>
<CFIF NextParagraph EQ 0>
<table width="400" border="0">
<tr>
<td>
<cfoutput>#press#</cfoutput>
</td>
</tr>
</table>
<P></P>
<a href="<cfoutput>#CurrentPage#</cfoutput>" class="class1">Back to Intro</a>
<P></P>
<CFELSE>
<table width="400" border="0">
<tr>
<td>
story_remaining: <cfoutput>#story_remaining#</cfoutput><br>
NP_STARTING_POINT: <cfoutput>#NP_STARTING_POINT#</cfoutput>
<P>
</P>
<cfoutput>#left(press, NextParagraph2)#</cfoutput>
</td>
</tr>
</table>
<P></P>
<a
href="next.cfm?id=20&sp=<cfoutput>#NP_STARTING_POINT#&sr=#story_remaining#</cfoutput>"
class="class1">Next Page</a>
<P></P>
</CFIF>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243143
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54