Jump to content

Megalomaniac

Member
  • Posts

    38
  • Joined

  • Last visited

Reputation Activity

  1. Love
    Megalomaniac got a reaction from rebecadourado in Can I disable viewers 'dragging and dropping' my jpeg images onto their desktop?   
    Hello world. I found this out there. I believe its from two sources, I do not recall where exactly, but i love it! Special Thanks to those coding geniuses out there!
    This cleanly disables drag and drop of images and disables the right click over all images.
    Simply place this in your main CODE INJECTION under HEADER. Save it and your done!
    <HTML> <HEAD></HEAD> <BODY on contextmenu="return false;" onselectstart="return false;" ondragstart="return false;"> </BODY> </HTML> <script> document.oncontextmenu = function(e){ var target = (typeof e !="undefined")? e.target: event.srcElement if (target.tagName == "IMG" || (target.tagName == 'A' && target.firstChild.tagName == 'IMG')) return false } </script>
    Best to you all out there, Megalo
  2. Like
    Megalomaniac got a reaction from moushi in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
  3. Thanks
    Megalomaniac got a reaction from Createxconform in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
  4. Like
    Megalomaniac got a reaction from pflaumrc in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
  5. Like
    Megalomaniac got a reaction from HelloRetro in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
  6. Like
    Megalomaniac got a reaction from seasparrow in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
  7. Like
    Megalomaniac got a reaction from NineWindBao in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
  8. Like
    Megalomaniac got a reaction from JESKA in How do I create hide/show section of an entire page of text, images and or galleries in Squarespace (spoiler function/accordian/collapse)?   
    I'm trying to reduce my individual portfolio project pages to a few main images and the rest of the page that may contain additional text, galleries or images, to essentially hide unless prompted by the viewer. call it an accordion or a spoiler function or collapse, not best with terminology.
    I started by looking at this thread, which has a simple and elegant approach for text only.http://answers.squarespace.com/questions/72321/how-do-i-create-hideshow-faqs-in-squarespace-collapsed-text
    This is great for those circumstances, but I need it to include galleries and images or the like.
    Does anyone know how this can be done or a variant of it that may also work?
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.