benchild1996
New Coder
Hi I'm super new to code and have ventured upon it as I am attempting to make a portfolio website for my graphic design work and experience.
Attempting to go the extra mile over the majority of design graduate portfolio websites, I've setup an interactive opening page to the site that randomly generates and displays a list of set out statements upon entering the site and refreshing thus.
What I want is for the statement (no matter which is displayed) to work as a hyper link into the main navigation page of the site. Currently I am able to attach a hyper link to a single statement but unfortunately not all of them.
Would anyone be willing to help me out?
Here is the present code I am working with:
<meta charset="utf-8">
<title>Random Text</title>
ANY help will be much appreciated! Thankyou!
Attempting to go the extra mile over the majority of design graduate portfolio websites, I've setup an interactive opening page to the site that randomly generates and displays a list of set out statements upon entering the site and refreshing thus.
What I want is for the statement (no matter which is displayed) to work as a hyper link into the main navigation page of the site. Currently I am able to attach a hyper link to a single statement but unfortunately not all of them.
Would anyone be willing to help me out?
Here is the present code I am working with:
Code:
<meta charset="utf-8">
<title>Random Text</title>
<div id="quote"><p>The correct use of soap</p></div>
<script>
(function(randomtext) {
var quotes = [
{
text: "May I rock on Tommy?",
},
{
text: "Global Style?",
},
{
text: "White text on a black background",
},
{
text: "Thats not a ram. Thats a sacrificial lamb",
},
{
text: "The six o'clock horses",
},
{
text: "Radically autonomous",
},
{
text: "Anticipatory Typography",
},
{
text: "Two cool rock chicks listening to Neu",
},
{
text: "In the mind of the bourgeois reader",
},
{
text: "Courstide seats at the Yankees?",
},
{
text: "Self-obsessed And sexxee",
},
{
text: "Here comes a regular",
},
{
text: "Nowhere is near my home",
},
{
text: "South american folk songs",
},
{
text: "The kid with the replacable head",
},
{
text: "High tension wire",
},
{
text: "A different kind of tension",
},
{
text: "Nine million rainy days",
},
{
text: "Up the down escalator",
},
{
text: "Concerto in X minor",
},
{
text: "The Biz Vs. The Nuge",
},
{
text: "B-Boys making with the freak freak",
},
{
text: "Flowers of romance",
},
{
text: "Love like anthrax",
},
{
text: "A man with a good car",
},
{
text: "Apache (Man On Horseback)",
},
{
text: "The correct use of soap",
},
];
var quote = quotes[Math.floor(Math.random() * quotes.length)];
document.getElementById("quote").innerHTML =
'<p>' + quote.text + '</p>';
})();
</script>
<title>Random Text</title>
ANY help will be much appreciated! Thankyou!
Last edited: