All,

I'm trying to create a text flow from an article.  When the page displays so of 
the story,
the Next Page hyperlink shows up.  Once I click on it and get to the 2nd page, 
I'm trying 
to figure out how to display the text from where I left off and continue that 
to as many pages
as required until the story is complete.

Here's what I have so far. I'm a little confused. 

<!--- SAMPLE STORY SET TO VAR PRESS --->
<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>">

<!--- STARTING POINT TO LOOK FOR 2 END PARAGRAPHS --->
<cfif isdefined ("url.NP")>
 <CFIF ISNUMERIC(URL.NP)>
  <CFSET num = (url.NP + 183) >
 </CFIF>
<cfelse>
<CFSET num = 183 >
</cfif>
<!--- GET THE LENGTH OF THE ENTIRE STORY --->
<CFSET story_length = Len(press)>
<!--- FIND THE LOCATION WHERE THESE 2 P'S ARE LOCATED AFTER NUM --->
<CFSET NextParagraph = Find("<p></P>",press, #num#)>
<!--- IF NEXTPRARGRAPH IS 0, THAN THE END OF THE STORY HAS BEEN REACHED AN NO 
OTHERS ARE FOUND END OF STORY --->
<CFIF NextParagraph EQ 0 >
 <CFSET NextParagraph2 = 0 >
<cfelse>
 <!--- SUBTRACT 1 CHARACTOR FROM NEXTPARAGRAPH TO REMOVE LESS THAN --->
 <CFSET NextParagraph2 = (NextParagraph - 1 )>
 <!--- SUBSTRACT NUMBER LOCATION OF 2 PS FROM ENTIRE STORY LENGTH + 6 SPACES  
--->
 <CFSET story_remaining = #story_length# - (#NextParagraph# + 6)> 
 <!--- GET AMOUNT TO PASS TO URL FOR NEXT PAGE --->
 <CFSET NP_STARTING_POINT = (NextParagraph + 6)>
</CFIF>

<CFIF NextParagraph EQ 0>
 <CFELSE>
<table width="400" border="0">
  <tr>
    <td> <cfoutput>#left(press, NextParagraph2)#</cfoutput></td>
  </tr>
</table>
  <P></P>
 <a href="next.cfm?id=20&np=<cfoutput>#NP_STARTING_POINT#</cfoutput>" 
class="class1">Next Page</a>
 <P></P>

</CFIF><p></p>


D

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243122
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

Reply via email to